Documentation
¶
Index ¶
Constants ¶
View Source
const ( // ShutdownTimeout is the overall ceiling for stopping the server graph. // Each component also gets its own smaller budget so one slow stop cannot // consume the time reserved for components behind it. ShutdownTimeout = 6 * time.Minute )
Variables ¶
This section is empty.
Functions ¶
func LocalClientAddress ¶
LocalClientAddress returns a loopback address for a client connecting to a server that listens on all interfaces.
func NormalizeServerAddress ¶
NormalizeServerAddress adds the default port when an address does not name one explicitly. Server binding and local client configuration both use this path so they cannot disagree about where the API is listening.
Types ¶
type Runtime ¶
type Runtime struct {
ControlPlane *coordinate.ControlPlane
Runner *runner.Runner
// contains filtered or unexported fields
}
Runtime owns the started server graph and its top-level services.
func Start ¶
func Start(options StartOptions) (*Runtime, error)
Start assembles, validates, and starts the server dependency graph.
type StartOptions ¶
type StartOptions struct {
Log *slog.Logger
Context context.Context
Group *errgroup.Group
Config *serverconfig.Config
}
StartOptions contains the resolved inputs used to assemble one fixed server boot graph.
Source Files
¶
- boot_admin.go
- boot_app_data.go
- boot_app_metrics.go
- boot_application_management.go
- boot_build_saga_recovery.go
- boot_buildkit.go
- boot_cloud_control.go
- boot_cloud_uplink.go
- boot_cluster_access.go
- boot_deployment_attempt_migration.go
- boot_entity_access.go
- boot_entity_maintenance.go
- boot_etcd.go
- boot_foundation.go
- boot_ingress.go
- boot_ip_discovery.go
- boot_network.go
- boot_node_storage.go
- boot_observability.go
- boot_oci_registry.go
- boot_pprof.go
- boot_registration.go
- boot_registry_host_mapping.go
- boot_resource_usage.go
- boot_runner_endpoints.go
- boot_sandbox_host.go
- boot_secret_store.go
- boot_tracing.go
- boot_victoria_health.go
- boot_victorialogs.go
- boot_victoriametrics.go
- boot_work_admission.go
- boot_workload_control.go
- boot_workload_identity.go
- runtime.go
- server_address.go
- startup.go
Click to show internal directories.
Click to hide internal directories.