Documentation ¶
Overview ¶
Package persist contains persist-specific interfaces.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ItemSyncer ¶
type ItemSyncer interface { Write(MarshallableItem) error Delete(MarshallableItem) error LoadAll() ([]MarshallableItem, error) LoadByID(string) (MarshallableItem, error) }
ItemSyncer is a syncer of items from/to some kind of storage, such as a database.
type MarshallableItem ¶
MarshallableItem is an interface for representing items that can be marshalled (for persisting).
type Unmarshaller ¶
type Unmarshaller interface {
Unmarshal([]byte) (MarshallableItem, error)
}
Unmarshaller is an interface for unmarshalling persisted items.
Click to show internal directories.
Click to hide internal directories.