Documentation
¶
Overview ¶
Package server is the HTTP surface of ward.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Deps ¶
type Deps struct {
Engine *mirror.Engine
Land *land.Service
Checks *check.Manager
// Pull is the queue of the pull repositories. It is nil when no repository has a pull runner.
Pull *pull.Queue
Store mirror.Store
Verifier *token.Verifier
// Human, when set, also authenticates the land routes. A caller token is tried first.
Human identity.Authenticator
// UserTokens, when set, serves the administration of per-user tokens to an operator token.
UserTokens usertoken.Store
Registry *prometheus.Registry
Logger *slog.Logger
Now func() time.Time
}
Deps are what the handler needs. Engine is nil when no mirror is configured.
Click to show internal directories.
Click to hide internal directories.