Versions in this module Expand all Collapse all v0 v0.0.7 Oct 27, 2026 v0.0.6 Oct 16, 2026 v0.0.5 Oct 12, 2026 Changes in this version + const AckKey + const LoopbackHost + var ErrInvalidListen = errors.New("not a listen address") + var ErrOpenToNetwork = errors.New("a hub without sign-in may not listen beyond loopback") + func HasSignIn(sso, staticToken bool) bool + type Plan struct + Acknowledged bool + Authenticated bool + Explicit bool + ExternalHTTPS bool + ExternalURL string + ExternalURLKey string + Host string + Port int + Scope Scope + TLS bool + func Decide(r Request) (Plan, error) + func (p Plan) Addr() string + func (p Plan) BeyondLoopback() bool + func (p Plan) LocalHost() string + func (p Plan) Notice() (text string, warning bool) + func (p Plan) Open() bool + func (p Plan) PlaintextBehindHTTPS() bool + func (p Plan) String() string + func (p Plan) URL() string + type RefusalError struct + Plan Plan + Source string + func (e *RefusalError) Error() string + func (e *RefusalError) Unwrap() error + type Request struct + AllowUnauthenticatedNetwork bool + ExternalURL string + ExternalURLKey string + Listen string + Port int + SSO bool + Source string + StaticToken bool + TLS bool + type Scope int + const ScopeAddress + const ScopeEvery + const ScopeLoopback + func ParseHost(s string) (host string, scope Scope, err error) + func (s Scope) String() string