Documentation
¶
Overview ¶
Package server wires the vx server together: database, blob store, git bridge, API handlers and the HTTP listener.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct {
Addr string // listen address, e.g. ":7070"
DatabaseURL string
DataDir string // blob store and git mirrors live here
Logger *slog.Logger
// Upstream imports branches from git providers; nil disables it.
Upstream func(st *store.Store, blobs blob.Store, dataDir string) (service.UpstreamSyncer, error)
// GitHub configures the GitHub App (VX_PUBLIC_URL, VX_SECRET_KEY,
// VX_SIGNUP). Connect defaults to the internal/github client.
GitHub service.GitHubSettings
// Hosts configures GitLab, Gitea, Forgejo and Bitbucket webhooks
// (VX_<HOST>_WEBHOOK_SECRET).
Hosts service.HostSettings
}
Config is the server configuration.
Click to show internal directories.
Click to hide internal directories.