memstore

package
v1.6.1 Latest Latest
Warning

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

Go to latest
Published: Oct 20, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MemStore

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

func NewMemStore

func NewMemStore() *MemStore

func (*MemStore) Add

func (m *MemStore) Add(op ...*v1.Operation) error

func (*MemStore) Delete

func (m *MemStore) Delete(opID ...int64) ([]*v1.Operation, error)

func (*MemStore) Get

func (m *MemStore) Get(opID int64) (*v1.Operation, error)

func (*MemStore) Query

func (m *MemStore) Query(q oplog.Query, f func(*v1.Operation) error) error

func (*MemStore) SetVersion

func (m *MemStore) SetVersion(version int64) error

func (*MemStore) Transform

func (m *MemStore) Transform(q oplog.Query, f func(*v1.Operation) (*v1.Operation, error)) error

func (*MemStore) Update

func (m *MemStore) Update(op ...*v1.Operation) error

func (*MemStore) Version

func (m *MemStore) Version() (int64, error)

Jump to

Keyboard shortcuts

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