Versions in this module Expand all Collapse all v0 v0.0.4 Mar 21, 2021 v0.0.3 Mar 20, 2021 Changes in this version + var ErrRecordNotFound = errors.New("record not found") + type Factory interface + Factory func() SerializedItem + type IDSetter interface + SetID func(string) + type Item interface + GetId func() string + GetNamespace func() string + type ItemFilter interface + Compare func(SerializedItem) bool + type Items []Item + type ListOpt struct + Filter ItemFilter + Limit int64 + Page int64 + Sort Sort + Version int64 + type Serializable interface + Marshal func() ([]byte, error) + Unmarshal func([]byte) error + type SerializedItem interface + type Sort int + const SortCreatedAsc + const SortCreatedDesc + const SortNatural + const SortUpdatedAsc + const SortUpdatedDesc + type Store interface + Create func(Item) error + Delete func(Item) error + List func(Factory, ListOpt) (Items, error) + Read func(Item) error + Update func(Item) error + type TimeTracker interface + GetCreated func() int64 + GetUpdated func() int64 + SetCreated func(t int64) + SetUpdated func(t int64)