settingsstate

package
v0.5.20 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 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
Package mock_settingsstate is a generated GoMock package.
Package mock_settingsstate is a generated GoMock package.

Jump to

Keyboard shortcuts

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