Versions in this module Expand all Collapse all v0 v0.1.1 Jan 13, 2026 v0.1.0 Jan 12, 2026 Changes in this version + type Config struct + HTTPServerBindIP string + HTTPServerBindPort uint16 + HTTPServerCert string + HTTPServerClientCACerts []string + HTTPServerHeaderReadTimeoutMillis int + HTTPServerIdleTimeoutMillis int + HTTPServerKeepAlive bool + HTTPServerKey string + HTTPServerMaxHeaderBytes int + HTTPServerReadTimeoutMillis int + HTTPServerTLSMode TLSMode + HTTPServerWriteTimeoutMillis int + type Option func(srvOpts *serverOptions) + func WithBoundCallback(callback func(tcpAddr *net.TCPAddr)) Option + func WithCommonMiddleware(commonMiddleware ...middleware.Middleware) Option + func WithConfigProvider(provider func() (*Config, error)) Option + func WithEndpoints(endpointHandlers ...endpoints.EndpointHandler) Option + func WithListenerProvider(provider func(bindIP string, bindPort uint16) (*net.TCPListener, error)) Option + type Server struct + func New(opts ...Option) (*Server, error) + func (server *Server) Run() error + func (server *Server) Shutdown(ctx context.Context) error + type TLSMode string + const TLSModeMutualTLS + const TLSModeOff + const TLSModeTLS