Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MapStore ¶
type MapStore struct {
// contains filtered or unexported fields
}
MapStore will serve as our in-memory DB
func NewMapStore ¶
func NewMapStore() *MapStore
NewMapStore conveniently creates a new initialised syncstore
func (*MapStore) CreatePuppy ¶
CreatePuppy lets you create a new unique puppy in MapStore
func (*MapStore) DeletePuppy ¶
DeletePuppy lets you delete a specific puppy in MapStore
type SyncStore ¶
SyncStore struct. To serve as alternative in-memory DB. It also implements Storer interface
func NewSyncStore ¶
func NewSyncStore() *SyncStore
NewSyncStore conveniently creates a new initialised syncstore
func (*SyncStore) CreatePuppy ¶
CreatePuppy creates a puppy in sync store. Note we use a pointer receiver for this
func (*SyncStore) DeletePuppy ¶
DeletePuppy deletes a puppy in sync store
Click to show internal directories.
Click to hide internal directories.