Versions in this module Expand all Collapse all v0 v0.3.0 Jan 5, 2026 v0.2.0 Dec 31, 2025 v0.1.0 Dec 29, 2025 Changes in this version + type Builder struct + func NewBuilder(name string, port int) *Builder + func (b *Builder) Build() (*Server, error) + func (b *Builder) WithDualModeLog() *Builder + func (b *Builder) WithHandler(path string, handler http.Handler) *Builder + func (b *Builder) WithHandlerFunc(path string, handler http.HandlerFunc) *Builder + func (b *Builder) WithHealthHandler(handler http.HandlerFunc) *Builder + func (b *Builder) WithTimeouts(read, write, idle time.Duration) *Builder + type Config struct + EnableDualModeLog bool + HandlerFuncs map[string]http.HandlerFunc + Handlers map[string]http.Handler + HealthHandler http.HandlerFunc + HealthPath string + IdleTimeout time.Duration + Name string + Port int + ReadTimeout time.Duration + WriteTimeout time.Duration + type Server struct + func New(cfg Config) (*Server, error) + func (s *Server) Addr() string + func (s *Server) Start() error + func (s *Server) StartAsync() + func (s *Server) StartWithListener(listener net.Listener) error + func (s *Server) Stop(ctx context.Context) error