Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type LevelDBStore ¶
LevelDBStore provides sync for leveldb
func NewLevelDBStorer ¶
func NewLevelDBStorer() *LevelDBStore
NewLevelDBStorer creates new storer for leveldb
func (*LevelDBStore) CreatePuppy ¶
func (l *LevelDBStore) CreatePuppy(p *puppy.Puppy) (int, error)
CreatePuppy creates puppy
func (*LevelDBStore) DeletePuppy ¶
func (l *LevelDBStore) DeletePuppy(id int) (bool, error)
DeletePuppy deletes puppy
func (*LevelDBStore) ReadPuppy ¶
func (l *LevelDBStore) ReadPuppy(id int) (*puppy.Puppy, error)
ReadPuppy reads puppy from backend
func (*LevelDBStore) UpdatePuppy ¶
func (l *LevelDBStore) UpdatePuppy(id int, p *puppy.Puppy) error
UpdatePuppy updates puppy
type MemStore ¶
MemStore map based type for storing puppies data
func (MemStore) CreatePuppy ¶
CreatePuppy creates puppy
func (MemStore) DeletePuppy ¶
DeletePuppy deletes puppy
type SyncStore ¶
SyncStore sync.Map based type for storing puppies data
func (*SyncStore) CreatePuppy ¶
CreatePuppy creates puppy
func (*SyncStore) DeletePuppy ¶
DeletePuppy deletes puppy
Click to show internal directories.
Click to hide internal directories.