package
7.17.28
Repository: https://github.com/elastic/beats.git
Documentation: pkg.go.dev

# Functions

Fetch action will add an element to the transaction queue.
New creates a new Poller.
RenewToken will renew the token provider's master token in the case of an authorization error.
Terminate action causes the poll loop to finish with the given error.
WithContext sets the context used to terminate the poll loop.
WithLogger sets the logger to use.
WithMinRequestInterval sets the minimum delay between requests.
WithRequestDecorator sets additional request decorators that will be applied to all requests.
WithTokenProvider sets the token provider that will be used to set a bearer token to all requests.

# Structs

Poller encapsulates a single-threaded polling loop that performs requests and executes actions in response.

# Interfaces

Enqueuer is the interface provided to actions so they can act on a Poller.
Transaction is the interface that wraps a request-response transaction to be performed by the poller.

# Type aliases

Action is an operation returned by a transaction.
PollerOption is the type for additional configuration options for a Poller.