package
1.11.9
Repository: https://github.com/xmidt-org/webpa-common.git
Documentation: pkg.go.dev

# Packages

Package health has integrations with webpa-common/health for monitoring httppool Dispatchers.

# Functions

No description provided by the author
FilteredTask is a constructor that produces a decorator Task that checks if a given delegate's request should be allowed to proceed.
PerishableTask is a constructor that returns a decorator Task that returns ErrorTaskExpired if the given expiry has been reached.
RequestTask allows an already-formed http.Request to be used as a Task.

# Constants

No description provided by the author
No description provided by the author
EventTypeFinish indicates that a task has finished.
EventTypeQueue indicates that a task has been successfully queued.
EventTypeReject indicates that a task was not queued, either because the queue was full or because the pool was closed.
EventTypeStart is sent when a task has been dequeued and is about to be processed.

# Variables

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

# Structs

Client is factory for asynchronous, pooled HTTP transaction dispatchers.

# Interfaces

DispatchCloser is a Dispatcher that can be closed.
Dispatcher represents anything that can receive and process tasks.
Event represents an interesting occurrence in an httppool.
Listener is a consumer of Events.
RequestFilter provides a way to accept or reject requests.

# Type aliases

Consumer is a function type which is invoked with the results of an HTTP transaction.
No description provided by the author
Task is a constructor function type that creates http.Request objects A task is used, rather than a request directly, to allow lazy instantiation of requests at the time the request is to be sent.