database/keyvalue.go

16 lines
265 B
Go
Raw Normal View History

2022-01-09 03:01:15 +00:00
package database
// Key represents a key in a key/value Filer.
type Key interface {
Bytes() []byte
String() string
Equal(Key) bool
}
// Value represents a value in a key/value Filer.
type Value interface {
Bytes() []byte
String() string
Equal(Value) bool
}