blob: 407ca44c70098b629fb84ed4c9d4918bc9b3e596 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
|
package search
import "fmt"
var (
NotFound = fmt.Errorf("could not find entry")
NotImplemented = fmt.Errorf("method not implemented")
)
type Put interface {
Empty() bool
Size() int
Put(key int, val int)
Get(key int) (int, error)
Del(key int) (int, error)
}
|