Documentation
¶
Overview ¶
Package runtime starts and stops the reference server's HTTP listeners and background workers.
Serve validates listener security, builds the configured application and runs it until cancellation or a serving failure. It supports configured certificate files and managed HTTPS identities. Plain HTTP is restricted to loopback; the DDM role additionally requires an explicit test option.
Shutdown stops HTTP admission and drains active requests before cancelling workers. A shared deadline bounds that drain, and workers that fail to stop are reported as an error. Serve closes the application resources it owns.
Index ¶
Constants ¶
This section is empty.
Variables ¶
var ErrProbe = errors.New("health probe failed")
ErrProbe identifies invalid probe configuration or an unhealthy endpoint.
Functions ¶
Types ¶
type ProbeConfig ¶
type ProbeConfig struct {
Certificate *x509.Certificate
URL string
Listen string
TLSCertFile string
TLSKeyFile string
CAFile string
}
ProbeConfig selects an explicit URL or the process configuration with URL=auto. Automatic TLS checks trust and pin the configured certificate, independently of public DNS or the device-identity CA. CAFile is for explicit URL probes.