snapshot

package
v0.0.0-...-6c97dad Latest Latest
Warning

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

Go to latest
Published: May 5, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func WithMemorySnapshotStore

func WithMemorySnapshotStore() revent.AppOption

Types

type MemorySnapshotStore

type MemorySnapshotStore struct {
	// contains filtered or unexported fields
}

github.com/revent-dev/revent/store.SnapshotStore

func NewMemorySnapshotStore

func NewMemorySnapshotStore() *MemorySnapshotStore

func (*MemorySnapshotStore) GetSnapshot

func (*MemorySnapshotStore) SaveSnapshot

func (m *MemorySnapshotStore) SaveSnapshot(id aggregate.AggregateID, snapshot revent.Snapshot) error

type MongodbSnapshotStore

type MongodbSnapshotStore struct {
	// contains filtered or unexported fields
}

github.com/revent-dev/revent/store.SnapshotStore

func NewMongoSnapshotStore

func NewMongoSnapshotStore(db *mongo.Database) *MongodbSnapshotStore

func (*MongodbSnapshotStore) GetSnapshot

func (*MongodbSnapshotStore) SaveSnapshot

func (m *MongodbSnapshotStore) SaveSnapshot(id aggregate.AggregateID, snapshot revent.Snapshot) error

Jump to

Keyboard shortcuts

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