summaryrefslogtreecommitdiff
path: root/search/set.go
blob: ed5b442b804170b19bfc637bccffb54363bfed3d (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 Set interface {
	Empty() bool
	Size() int
	Put(key int, val int)
	Get(key int) (int, error)
	Del(key int) (int, error)
}