Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoAgents = errors.New("no agent factories defined")
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { // Agent keeps the configuration for the async agent Agent *config.AsyncAgent // Endpoint encapsulates the configuration for the associated pipe Endpoint *config.EndpointConfig // Proxy is the pipe associated with the async agent Proxy proxy.Proxy // AgentPing is the channel for the agent to send ping messages AgentPing chan<- string // G is the error group responsible for managing the agents and the router itself G *errgroup.Group // ShouldContinue is a function signaling when to stop the connection retries ShouldContinue func(int) bool // BackoffF is a function encapsulating the backoff strategy BackoffF backoff.TimeToWaitBeforeRetry Logger logging.Logger }
Options contains the configuration to pass to the async agent factory
Click to show internal directories.
Click to hide internal directories.