Documentation ¶
Index ¶
Constants ¶
View Source
const ( SpaceStatusCreated = iota SpaceStatusDeletionPending SpaceStatusDeletionStarted SpaceStatusDeleted )
View Source
const CName = "coordinator.spacestatus"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type ChangeVerifier ¶
type ChangeVerifier interface {
Verify(rawDelete *treechangeproto.RawTreeChangeWithId, identity crypto.PubKey, peerId string) (err error)
}
type DelSender ¶
type DelSender interface {
Delete(ctx context.Context, spaceId string, raw *treechangeproto.RawTreeChangeWithId) (err error)
}
type SpaceDeleter ¶
type SpaceDeleter interface { Run(spaces *mongo.Collection, delSender DelSender) Close() }
type SpaceStatus ¶
type SpaceStatus interface { NewStatus(ctx context.Context, spaceId string, identity, oldIdentity crypto.PubKey) (err error) ChangeStatus(ctx context.Context, spaceId string, change StatusChange) (entry StatusEntry, err error) Status(ctx context.Context, spaceId string, pubKey crypto.PubKey) (entry StatusEntry, err error) app.ComponentRunnable }
func New ¶
func New() SpaceStatus
type StatusChange ¶
type StatusChange struct { DeletionPayload *treechangeproto.RawTreeChangeWithId Identity crypto.PubKey Status int PeerId string }
Directories ¶
Path | Synopsis |
---|---|
Package mock_spacestatus is a generated GoMock package.
|
Package mock_spacestatus is a generated GoMock package. |
Click to show internal directories.
Click to hide internal directories.