Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Filter ¶
type Filter interface { // Enables a single central function to cast from husk.Dataer to <Entity> Filter(obj Record) bool }
Filter used to filter records while searching.
type Index ¶
type Index interface { /// Create new entry in this index that maps value.Key K to value V Add(m Meta) (Key, error) Set(k Key, v Meta) error /// Find an entry by key Get(k Key) Meta IndexOf(k Key) int /// Delete all entries of given key Delete(k Key) bool GetKeys() []Key }
Index is used to manage data and where it's located
type Key ¶
type Key interface { collections.Comparable fmt.Stringer json.Marshaler json.Unmarshaler GetTimestamp() time.Time }
type Meta ¶
func NewMetaWithPoint ¶ added in v1.7.0
type Record ¶
type Record interface { GetKey() Key GetValue() validation.Dataer }
Record is what defines a record, and what it can do
Source Files
¶
Click to show internal directories.
Click to hide internal directories.