Documentation
¶
Overview ¶
Package runnerapi serves Beekeeper's runner API under /runner/v1: a member registers and deregisters runners with their own token, and a runner, with its key and its host's token, holds its stream open, answers offers and reports its pressure, sessions and subscription usage. The wire types are in pkg/runnerapi.
Every refusal is a 403, counted and logged as [AUDIT]. A process that isn't the leader, or an issuer that doesn't answer, is a 503 with Retry-After.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler struct {
// contains filtered or unexported fields
}
Handler serves the runner API.
type Options ¶
type Options struct {
// Coordinator returns the leader's coordinator, or nil while this
// process isn't the leader.
Coordinator func() *coordinator.Coordinator
Auth *auth.Authenticator
// Clock ticks the stream's pings.
Clock clock.WithTicker
Metrics *metrics.Metrics
Log *slog.Logger
}
Options are a handler's dependencies.