Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type Client ¶
type Client struct {
// contains filtered or unexported fields
}
Client is a implementation of the orbital.Initiator interface.
func NewClient ¶
func NewClient(h orbital.HandlerFunc, opts ...Option) (*Client, error)
NewClient creates a new embedded Client instance. It expects a handler which is used to process task requests and generate task responses. It allows options to configure the buffer size of the link channel and the timeout for the handler.
func (*Client) ReceiveTaskResponse ¶
ReceiveTaskResponse waits for a task response.
func (*Client) SendTaskRequest ¶
SendTaskRequest passes the task request to the handler which processes the request asynchronously.
type Option ¶
type Option func(*config) error
Option is a function type that modifies the configuration of the Client.
func WithBufferSize ¶ added in v0.5.0
WithBufferSize sets the buffer size of the link channel.
func WithHandlerTimeout ¶ added in v0.5.0
WithHandlerTimeout sets the timeout for the handler.
Click to show internal directories.
Click to hide internal directories.