package
0.1.4
Repository: https://github.com/uber/kraken.git
Documentation: pkg.go.dev

# Functions

NewIntervalTrap creates a new IntervalTrap.
NewLimiter creates a new Limiter for tasks.
NewRequestCache creates a new RequestCache.

# Constants

TaskGCInterval is the interval in which garbage collection of old tasks runs.

# Variables

RequestCache errors.
RequestCache errors.

# Structs

IntervalTrap manages trapping into some task which must run at a given interval.
Limiter deduplicates the running of a common task within a given limit.
RequestCache tracks pending requests and caches errors for configurable TTLs.
RequestCacheConfig defines RequestCache configuration.

# Interfaces

IntervalTask defines a task to run on some interval.
TaskRunner runs against some input and produces some output w/ a ttl.

# Type aliases

ErrorMatcher defines functions which RequestCache uses to detect user defined errors.
Request defines functions which encapsulate a request.