Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewDefinitionSender ¶ added in v1.1.0
func NewDefinitionSender(ctx context.Context, ns *core.Namespace, multiparty bool, di database.Plugin, bi blockchain.Plugin, dx dataexchange.Plugin, bm broadcast.Manager, im identity.Manager, dm data.Manager, am assets.Manager, cm contracts.Manager, tokenBroadcastNames map[string]string) (Sender, Handler, error)
Types ¶
type DefinitionMessageAction ¶ added in v0.12.0
type DefinitionMessageAction int
DefinitionMessageAction is the action to be taken on an individual definition message
const ( // ActionReject the message was successfully processed, but was malformed/invalid and should be marked as rejected ActionReject DefinitionMessageAction = iota // ActionConfirm the message was valid and should be confirmed ActionConfirm // ActionRetry a recoverable error was encountered - batch should be halted and then re-processed from the start ActionRetry // ActionWait the message is still awaiting further pieces for aggregation and should be held in pending state ActionWait )
func (DefinitionMessageAction) String ¶ added in v0.14.0
func (dma DefinitionMessageAction) String() string
type HandlerResult ¶ added in v0.14.0
type HandlerResult struct { Action DefinitionMessageAction CustomCorrelator *fftypes.UUID }
type Sender ¶ added in v1.1.0
type Sender interface { core.Named ClaimIdentity(ctx context.Context, def *core.IdentityClaim, signingIdentity *core.SignerRef, parentSigner *core.SignerRef, waitConfirm bool) error UpdateIdentity(ctx context.Context, identity *core.Identity, def *core.IdentityUpdate, signingIdentity *core.SignerRef, waitConfirm bool) error DefineDatatype(ctx context.Context, datatype *core.Datatype, waitConfirm bool) error DefineTokenPool(ctx context.Context, pool *core.TokenPoolAnnouncement, waitConfirm bool) error DefineFFI(ctx context.Context, ffi *fftypes.FFI, waitConfirm bool) error DefineContractAPI(ctx context.Context, httpServerURL string, api *core.ContractAPI, waitConfirm bool) error }
Source Files ¶
Click to show internal directories.
Click to hide internal directories.