runnerapi

package
v1.0.0-rc.10 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 1, 2026 License: Apache-2.0 Imports: 13 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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.

func New

func New(o Options) *Handler

New returns the runner API's handler.

func (*Handler) Mount

func (h *Handler) Mount(mux *http.ServeMux)

Mount adds the runner API's routes to mux.

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL