package
0.1.0
Repository: https://github.com/dispatchrun/dispatch-go.git
Documentation: pkg.go.dev

# Functions

Bool creates an Any that contains a boolean value.
Bytes creates an Any that contains a bytes value.
CallResults sets the call results for the poll operation.
Calls adds calls to a Poll directive.
CoroutineState sets the coroutine state.
CorrelationID sets the correlation ID on a function call or result.
CreationTime sets the creation time for the function call.
DispatchID sets the opaque identifier for the function call.
Duration creates an Any that contains a duration value.
Errorf creates an Error from the specified message and args.
ErrorStatus categorizes an error to return a Status code.
ErrorValue sets the language-specific representation of the error.
Expiration sets a function call expiration.
ExpirationTime sets the expiration time for the function call.
Float creates an Any that contains a floating point value.
Input sets the output from a function call or Response.
Int creates an Any that contains an integer value.
Marshal packages a Go value into an Any, for use as input to or output from a Dispatch function.
NewCall creates a Call.
NewCallResult creates a CallResult.
NewError creates an Error from a Go error.
NewErrorMessage creates an Error.
NewExit creates an Exit directive.
NewPoll creates a Poll directive.
NewPollResult creates a PollResult.
NewRequest creates a Request.
NewResponse creates a Response.
NewResponseError creates a Response from the specified error.
NewResponseErrorf creates a Response from the specified error message and args.
Nil creates an Any that contains nil/null.
Output sets the output from a function call or Response.
ParentDispatchID sets the opaque identifier of the parent function call.
ParentDispatchID sets the opaque identifier of the root function call.
StatusOf returns the Status associated with an object.
String creates an Any that contains a string value.
TailCall sets the tail call.
Time creates an Any that contains a time value.
Traceback sets the encoded stack trace for the error.
Uint creates an Any that contains an unsigned integer value.
Version sets a function call version.

# Constants

No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author

# Structs

Any represents any value.
Call is a function call.
CallResult is a function call result.
Error is an error that occurred during execution of a function.
Exit is a directive that terminates a function call.
Poll is a general purpose directive used to spawn function calls and wait for their results, and/or to implement sleep/timer functionality.
PollResult is the result of a poll operation.
Request is a request from Dispatch to run a function.
Response is a response to Dispatch after a function has run.

# Interfaces

CallOption configures a Call.
CallResultOption configures a CallResult.
ExitOption configures an Exit directive.
PollOption configures a Poll directive.
PollResultOption configures a PollResult.
RequestOption configures a Request.
ResponseOption configures a Response.

# Type aliases

ErrorOption configures an Error.
Function is a Dispatch function.
FunctionMap is a map of Dispatch functions.
ID is an identifier for a dispatched function call.
Status categorizes the success or failure conditions resulting from an execution request.
StatusError is a Status as an error.