Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MapStore ¶
MapStore stores Puppy details with Puppy Id as Key and Puppy as value
func NewMapStore ¶
func NewMapStore() *MapStore
func (*MapStore) CreatePuppy ¶
CreatePuppy creates a Puppy in mapstore
func (*MapStore) DeletePuppy ¶
DeletePuppy deletes a Puppy from mapstore
type Storer ¶
type Storer interface { CreatePuppy(Puppy) error ReadPuppy(ID uint32) (Puppy, error) UpdatePuppy(Puppy Puppy) error DeletePuppy(ID uint32) error }
Storer defines the interface on Puppy
type SyncStore ¶
SyncStore stores Puppy details with Puppy Id as Key and Puppy as value
func NewSyncStore ¶
func NewSyncStore() *SyncStore
func (*SyncStore) CreatePuppy ¶
CreatePuppy creates a Puppy in syncstore
func (*SyncStore) DeletePuppy ¶
DeletePuppy deletes a Puppy from syncstore
Click to show internal directories.
Click to hide internal directories.