snapshot

package
v0.0.0-...-cc9b1f3 Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Manager

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

Manager is a struct that updates snapshot of a datatype in Orda server

func NewManager

func NewManager(
	ctx iface.OrdaContext,
	managers *managers.Managers,
	datatypeDoc *schema.DatatypeDoc,
	collectionDoc *schema.CollectionDoc,
) *Manager

NewManager returns an instance of Snapshot Manager

func (*Manager) GetLatestDatatype

func (its *Manager) GetLatestDatatype() (iface.Datatype, uint64, errors.OrdaError)

GetLatestDatatype returns the datatype from database

func (*Manager) UpdateSnapshot

func (its *Manager) UpdateSnapshot() errors.OrdaError

UpdateSnapshot updates snapshot for specified datatype

Jump to

Keyboard shortcuts

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