Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
ErrNotFound = fmt.Errorf("not found")
)
Functions ¶
This section is empty.
Types ¶
type Database ¶
type Database interface {
Find(id ID, receiver Storable) error
Save(id ID, storable Storable) error
Delete(ID) error
}
func NewMapDatabase ¶
func NewMapDatabase() Database
func OpenBoltDb ¶
type Storable ¶
type Storable interface {
encoding.BinaryMarshaler
encoding.BinaryUnmarshaler
}
Click to show internal directories.
Click to hide internal directories.