Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MapStore ¶
MapStore is map based implementation of Storer interface
func (*MapStore) CreatePuppy ¶
CreatePuppy inserts given puppy in store and returns given id to the puppy Will return an error if value of puppy is negative
func (*MapStore) DeletePuppy ¶
DeletePuppy deletes puppy with given id from store Returns nil if puppy with given id exists. Otherwise returns an errorZ
type SyncStore ¶
SyncStore is sync.Map based implementation of Storer interface
func (*SyncStore) CreatePuppy ¶
CreatePuppy inserts given puppy in store and returns given id to the puppy Will return an error if value of puppy is negative
func (*SyncStore) DeletePuppy ¶
DeletePuppy deletes puppy with given id from store Returns nil if puppy with given id exists. Otherwise returns an error
Click to show internal directories.
Click to hide internal directories.