Documentation ¶
Index ¶
Constants ¶
View Source
const CName = "common.coordinator.coordinatorclient"
Variables ¶
View Source
var ( ErrPubKeyMissing = errors.New("peer pub key missing") ErrNetworkMismatched = errors.New("network mismatched") )
Functions ¶
This section is empty.
Types ¶
type CoordinatorClient ¶
type CoordinatorClient interface { SpaceDelete(ctx context.Context, spaceId string, conf *coordinatorproto.DeletionConfirmPayloadWithSignature) (err error) AccountDelete(ctx context.Context, conf *coordinatorproto.DeletionConfirmPayloadWithSignature) (timestamp int64, err error) AccountRevertDeletion(ctx context.Context) (err error) StatusCheckMany(ctx context.Context, spaceIds []string) (statuses []*coordinatorproto.SpaceStatusPayload, limits *coordinatorproto.AccountLimits, err error) StatusCheck(ctx context.Context, spaceId string) (status *coordinatorproto.SpaceStatusPayload, err error) SpaceSign(ctx context.Context, payload SpaceSignPayload) (receipt *coordinatorproto.SpaceReceiptWithSignature, err error) NetworkConfiguration(ctx context.Context, currentId string) (*coordinatorproto.NetworkConfigurationResponse, error) IsNetworkNeedsUpdate(ctx context.Context) (bool, error) DeletionLog(ctx context.Context, lastRecordId string, limit int) (records []*coordinatorproto.DeletionLogRecord, err error) IdentityRepoPut(ctx context.Context, identity string, data []*identityrepoproto.Data) (err error) IdentityRepoGet(ctx context.Context, identities []string, kinds []string) (res []*identityrepoproto.DataWithIdentity, err error) AclAddRecord(ctx context.Context, spaceId string, rec *consensusproto.RawRecord) (res *consensusproto.RawRecordWithId, err error) AclGetRecords(ctx context.Context, spaceId, aclHead string) (res []*consensusproto.RawRecordWithId, err error) AccountLimitsSet(ctx context.Context, req *coordinatorproto.AccountLimitsSetRequest) error AclEventLog(ctx context.Context, accountId, lastRecordId string, limit int) (records []*coordinatorproto.AclEventLogRecord, err error) app.Component }
func New ¶
func New() CoordinatorClient
Click to show internal directories.
Click to hide internal directories.