Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Batch ¶
type Batch struct {
// contains filtered or unexported fields
}
Batch is used to submit a batch of function calls to Dispatch.
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a client for the Dispatch API.
The Client can be used to dispatch function calls.
func (*Client) Dispatch ¶
func (c *Client) Dispatch(ctx context.Context, call dispatchproto.Call) (dispatchproto.ID, error)
Dispatch dispatches a function call.
type Option ¶
type Option func(*Client)
Option configures a Client.
func APIKey ¶
APIKey sets the Dispatch API key to use for authentication when dispatching function calls through a Client.
It defaults to the value of the DISPATCH_API_KEY environment variable.
func APIUrl ¶
APIUrl sets the URL of the Dispatch API.
It defaults to the value of the DISPATCH_API_URL environment variable, or the default API URL (https://api.dispatch.run) if DISPATCH_API_URL is unset.
Click to show internal directories.
Click to hide internal directories.