postgres

package
v0.5.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jul 14, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL