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)
CreateSpaceDeleteChange(peerId string, state *State, isSnapshot bool) (res []byte, err error)
}
func NewChangeFactory ¶
func NewChangeFactory() ChangeFactory
type ObjectDeletionState ¶
type ObjectDeletionState interface {
AddObserver(observer StateUpdateObserver)
Add(ids map[string]struct{})
GetQueued() (ids []string)
Delete(id string) (err error)
Exists(id string) bool
Filter(ids []string) (filtered []string)
}
func NewObjectDeletionState ¶
func NewObjectDeletionState(log logger.CtxLogger, storage spacestorage.SpaceStorage) ObjectDeletionState
type State ¶
func NewStateFromSnapshot ¶
func NewStateFromSnapshot(snapshot *spacesyncproto.SpaceSettingsSnapshot, lastIteratedId string) *State
type StateBuilder ¶
type StateBuilder interface {
Build(tree objecttree.ReadableObjectTree, state *State) (*State, error)
}
func NewStateBuilder ¶
func NewStateBuilder() StateBuilder
type StateUpdateObserver ¶
type StateUpdateObserver func(ids []string)
Source Files
¶
Directories
¶
| Path | Synopsis |
|---|---|
|
Package mock_settingsstate is a generated GoMock package.
|
Package mock_settingsstate is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.