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 sysmessaging and syncasync bridge
Init(sysevents sysmessaging.SystemEvents)
// WaitForReply waits for a reply to the message with the supplied ID
WaitForReply(ctx context.Context, ns string, id *fftypes.UUID, send RequestSender) (*fftypes.MessageInOut, error)
// WaitForMessage waits for a message with the supplied ID
WaitForMessage(ctx context.Context, ns string, id *fftypes.UUID, send RequestSender) (*fftypes.Message, error)
// WaitForIdentity waits for an identity with the supplied ID
WaitForIdentity(ctx context.Context, ns string, id *fftypes.UUID, send RequestSender) (*fftypes.Identity, error)
// WaitForTokenPool waits for a token pool with the supplied ID
WaitForTokenPool(ctx context.Context, ns string, id *fftypes.UUID, send RequestSender) (*fftypes.TokenPool, error)
// WaitForTokenTransfer waits for a token transfer with the supplied ID
WaitForTokenTransfer(ctx context.Context, ns string, id *fftypes.UUID, send RequestSender) (*fftypes.TokenTransfer, error)
// WaitForTokenTransfer waits for a token approval with the supplied ID
WaitForTokenApproval(ctx context.Context, ns string, id *fftypes.UUID, send RequestSender) (*fftypes.TokenApproval, 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 RequestSender ¶
Click to show internal directories.
Click to hide internal directories.