Versions in this module Expand all Collapse all v0 v0.0.2 Oct 1, 2023 v0.0.1 Sep 30, 2023 Changes in this version + const PathFrontend + const PathHealthCheck + const PathRoot + const PathV1SettingsAll + const PathV1SettingsDNS + const PathV1SettingsHTTP + const PathV1SystemInfo + type Config struct + Addresses []netip.AddrPort + ConfigManager ConfigManager + ForceHTTPS bool + Frontend fs.FS + OverrideAddress netip.AddrPort + Pprof *PprofConfig + SecureAddresses []netip.AddrPort + Start time.Time + TLS *tls.Config + Timeout time.Duration + type ConfigManager interface + DNS func() (svc agh.ServiceWithConfig[*dnssvc.Config]) + UpdateDNS func(ctx context.Context, c *dnssvc.Config) (err error) + UpdateWeb func(ctx context.Context, c *Config) (err error) + Web func() (svc agh.ServiceWithConfig[*Config]) + type HTTPAPIDNSSettings struct + Addresses []netip.AddrPort + BootstrapPreferIPv6 bool + BootstrapServers []string + DNS64Prefixes []netip.Prefix + UpstreamServers []string + UpstreamTimeout aghhttp.JSONDuration + UseDNS64 bool + type HTTPAPIHTTPSettings struct + Addresses []netip.AddrPort + ForceHTTPS bool + SecureAddresses []netip.AddrPort + Timeout aghhttp.JSONDuration + type PprofConfig struct + Enabled bool + Port uint16 + type ReqPatchSettingsDNS struct + Addresses []netip.AddrPort + BootstrapPreferIPv6 bool + BootstrapServers []string + DNS64Prefixes []netip.Prefix + UpstreamServers []string + UpstreamTimeout aghhttp.JSONDuration + UseDNS64 bool + type ReqPatchSettingsHTTP struct + Addresses []netip.AddrPort + SecureAddresses []netip.AddrPort + Timeout aghhttp.JSONDuration + type RespGetV1SettingsAll struct + DNS *HTTPAPIDNSSettings + HTTP *HTTPAPIHTTPSettings + type RespGetV1SystemInfo struct + Arch string + Channel string + NewVersion string + OS string + Start aghhttp.JSONTime + Version string + type Service struct + func New(c *Config) (svc *Service, err error) + func (svc *Service) Config() (c *Config) + func (svc *Service) Shutdown(ctx context.Context) (err error) + func (svc *Service) Start() (err error)