Documentation
¶
Overview ¶
Package app assembles the shared panel services and HTTP surface for each edition.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BackgroundJob ¶
BackgroundJob is one long-lived VPS worker. Edge callers receive the list but do not run it.
type Config ¶
type Config struct {
Store *store.Store
Vault *vault.Vault
Auth *auth.Service
Limiter securitylimit.Limiter
MasterKey []byte
Clock func() time.Time
Logger *slog.Logger
Instance InstanceConfig
DecoyDir string
PanelAddr string
DataDir string
UpdateService string
Title string
HealthBlipWindow time.Duration
BackgroundStarters []BackgroundJob
}
Config contains the edition-specific dependencies and settings for the shared panel.
type InstanceConfig ¶
type InstanceConfig struct {
PublicURL string
AdminHost string
AdminPrefix string
AdminListen string
RPID string
RPOrigins []string
AgentSNI string
SubPrefix string
LinkPrefix string // secret path prefix of the signed agent WebSocket link; empty = not served by this handler
}
InstanceConfig is the stored reachability and WebAuthn configuration used by the panel.
func (InstanceConfig) AdminURL ¶
func (in InstanceConfig) AdminURL() string
AdminURL is the address the owner opens in a browser.
func (InstanceConfig) MuxPrefix ¶
func (in InstanceConfig) MuxPrefix() string
MuxPrefix is empty unless the admin lives under a secret path prefix.
type Panel ¶
type Panel struct {
Handler http.Handler
Server *httpserver.Server
Fleet *fleet.Fleet
Access *access.Service
Health *health.Service
Update *update.Service
Warp *warp.Service
Provision *nodeprovision.Service
Backup *backup.Service
Telegram *telegram.Service
Store *store.Store
Desired func(ctx context.Context, nodeID string) ([]statehash.Inbound, error)
BackgroundJobs []BackgroundJob
}
Panel is the assembled panel: its public HTTP handler, VPS listener adapter and services.