settingsstate

package
v0.3.5 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChangeFactory

type ChangeFactory interface {
	CreateObjectDeleteChange(id string, state *State, isSnapshot bool) (res []byte, err error)
}

func NewChangeFactory

func NewChangeFactory() ChangeFactory

type State

type State struct {
	DeletedIds     map[string]struct{}
	LastIteratedId string
}

func NewState

func NewState() *State

func NewStateFromSnapshot

func NewStateFromSnapshot(snapshot *spacesyncproto.SpaceSettingsSnapshot, lastIteratedId string) *State

func (*State) Exists

func (s *State) Exists(id string) bool

type StateBuilder

type StateBuilder interface {
	Build(tree objecttree.ReadableObjectTree, state *State) (*State, error)
}

func NewStateBuilder

func NewStateBuilder() StateBuilder

Directories

Path Synopsis
Code generated by MockGen.
Code generated by MockGen.

Jump to

Keyboard shortcuts

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