Versions in this module Expand all Collapse all v0 v0.3.0 Nov 23, 2026 Changes in this version + const DefaultPort + const DefaultsMsg + const SourceDefault + const SourceOption + var DefaultServerOptions = ServerOptions + func Boot(opts *bootOptions) context.Context + func BootOptions(service string) *bootOptions + func BuildInfo() string + func Draining() bool + func ListenAddr() string + func ListenPort() int + func RunForever(ctx context.Context, modules ...Module) error + func ServiceName() string + func SetDraining(v bool) + func SourceEnv(key string) string + type BuildInfoData struct + Time string + TimePretty string + Version string + func ReadBuildInfo() BuildInfoData + type Module interface + Register func(ctx context.Context) error + type Option interface + GetName func() string + GetValue func() any + func BannerExtras(lines ...string) Option + func Build(version, time string) []Option + func BuildTime(t string) Option + func BuildVersion(v string) Option + func Port(p int) Option + func WithLogger(l logger) Option + func WithoutBanner() Option + func WithoutDotenv() Option + type Server struct + func NewServer(opts ServerOptions) *Server + func (s *Server) Register(ctx context.Context) error + func (s *Server) Shutdown(shutdownCtx context.Context) error + type ServerOptions struct + Addr string + Handler http.Handler + IdleTimeout time.Duration + MaxHeaderBytes int + ReadHeaderTimeout time.Duration + ReadTimeout time.Duration + ShutdownGrace time.Duration + WriteTimeout time.Duration + type ShutdownModule interface + Shutdown func(shutdownCtx context.Context) error v0.2.0 Nov 23, 2026