Documentation ¶ Index ¶ type Persister func NewPersister(c *cluster.Cluster) *Persister func (p *Persister) Persist(item contract.Persistable) (int, error) func (p *Persister) Restore(kind, identity string) error type Snapshot Constants ¶ This section is empty. Variables ¶ This section is empty. Functions ¶ This section is empty. Types ¶ type Persister ¶ type Persister struct { // contains filtered or unexported fields } func NewPersister ¶ func NewPersister(c *cluster.Cluster) *Persister func (*Persister) Persist ¶ func (p *Persister) Persist(item contract.Persistable) (int, error) func (*Persister) Restore ¶ func (p *Persister) Restore(kind, identity string) error type Snapshot ¶ type Snapshot struct { Kind string `db:"kind"` Identity uuid.UUID `db:"identity"` Data []byte `db:"data"` CreatedAt time.Time `db:"created_at"` } Source Files ¶ View all Source files postgres.go Click to show internal directories. Click to hide internal directories.