Documentation ¶
Index ¶
Constants ¶
View Source
const CName = "common.commonspace.spacestorage"
Variables ¶
Functions ¶
This section is empty.
Types ¶
type SpaceStorage ¶
type SpaceStorage interface { app.ComponentRunnable Id() string HeadStorage() headstorage.HeadStorage StateStorage() statestorage.StateStorage AclStorage() (list.Storage, error) TreeStorage(ctx context.Context, id string) (objecttree.Storage, error) CreateTreeStorage(ctx context.Context, payload treestorage.TreeStorageCreatePayload) (objecttree.Storage, error) AnyStore() anystore.DB }
func Create ¶
func Create(ctx context.Context, store anystore.DB, payload SpaceStorageCreatePayload) (SpaceStorage, error)
type SpaceStorageCreatePayload ¶
type SpaceStorageCreatePayload struct { AclWithId *consensusproto.RawRecordWithId SpaceHeaderWithId *spacesyncproto.RawSpaceHeaderWithId SpaceSettingsWithId *treechangeproto.RawTreeChangeWithId }
type SpaceStorageProvider ¶
type SpaceStorageProvider interface { app.Component WaitSpaceStorage(ctx context.Context, id string) (SpaceStorage, error) SpaceExists(id string) bool CreateSpaceStorage(ctx context.Context, payload SpaceStorageCreatePayload) (SpaceStorage, error) }
Directories ¶
Path | Synopsis |
---|---|
Package mock_spacestorage is a generated GoMock package.
|
Package mock_spacestorage is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.