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 represents a simple map storage for the Puppy store
func NewMapStore ¶
func NewMapStore() *MapStore
NewMapStore creates a new in-memory store with map intialised
func (*MapStore) CreatePuppy ¶
CreatePuppy saves new puppy if not in store, if it is already returns error
func (*MapStore) DeletePuppy ¶
DeletePuppy deletes a puppy by id from the store
type SyncStore ¶
SyncStore implementation of the Storer interface
func NewSyncStore ¶
func NewSyncStore() *SyncStore
NewSyncStore creates a new in-memory store with map intialised
func (*SyncStore) CreatePuppy ¶
CreatePuppy saves new puppy if not in store, if it is already returns error
func (*SyncStore) DeletePuppy ¶
DeletePuppy deletes a puppy from the store
Click to show internal directories.
Click to hide internal directories.