Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Bridge ¶
type Bridge interface {
// Init is required as there's a bi-directional relationship between event manager and syncasync bridge
Init(sysevents system.EventInterface)
// WaitForReply waits for a reply to the message with the supplied ID
WaitForReply(ctx context.Context, id *fftypes.UUID, send SendFunction) (*core.MessageInOut, error)
// WaitForMessage waits for a message with the supplied ID
WaitForMessage(ctx context.Context, id *fftypes.UUID, send SendFunction) (*core.Message, error)
// WaitForIdentity waits for an identity with the supplied ID
WaitForIdentity(ctx context.Context, id *fftypes.UUID, send SendFunction) (*core.Identity, error)
// WaitForTokenPool waits for a token pool with the supplied ID
WaitForTokenPool(ctx context.Context, id *fftypes.UUID, send SendFunction) (*core.TokenPool, error)
// WaitForTokenTransfer waits for a token transfer with the supplied ID
WaitForTokenTransfer(ctx context.Context, id *fftypes.UUID, send SendFunction) (*core.TokenTransfer, error)
// WaitForTokenTransfer waits for a token approval with the supplied ID
WaitForTokenApproval(ctx context.Context, id *fftypes.UUID, send SendFunction) (*core.TokenApproval, error)
// WaitForInvokeOperation waits for an operation with the supplied ID
WaitForInvokeOperation(ctx context.Context, id *fftypes.UUID, send SendFunction) (*core.Operation, error)
// WaitForDeployOperation waits for an operation with the supplied ID
WaitForDeployOperation(ctx context.Context, id *fftypes.UUID, send SendFunction) (*core.Operation, error)
}
Bridge translates synchronous (HTTP API) calls, into asynchronously sending a message and blocking until a correlating response is received, or we hit a timeout.
type SendFunction ¶ added in v1.1.0
Click to show internal directories.
Click to hide internal directories.