Versions in this module Expand all Collapse all v0 v0.0.2 Sep 2, 2020 Changes in this version + var ErrRecordNotFound = errors.New("record not found") + type Factory interface + Factory func() SerializedItem + type ItemFilter interface + Compare func(SerializedItem) bool type ListOpt + Filter ItemFilter + type SerializedItem interface v0.0.1 Jul 13, 2020 Changes in this version + type IDSetter interface + SetID func(string) + type Item interface + GetId func() string + GetNamespace func() string + type Items []Item + type ListOpt struct + Limit int64 + Page int64 + Sort Sort + Version int64 + type Serializable interface + Marshal func() ([]byte, error) + Unmarshal func([]byte) error + 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(Items, ListOpt) (int, 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)