Versions in this module Expand all Collapse all v0 v0.1.0 May 3, 2026 Changes in this version + func RegisterHealth(api huma.API) + func RegisterRoutes(api huma.API, compressHandler *handler.CompressHandler, ...) + type CORSConfig struct + AllowCredentials bool + AllowedHeaders []string + AllowedMethods []string + AllowedOrigins []string + MaxAge int + type Config struct + BodyLimitBytes int64 + CORS CORSConfig + Host string + IdleTimeout time.Duration + Logging LoggingConfig + Port int + RateLimit RateLimitConfig + ReadHeaderTimeout time.Duration + ReadTimeout time.Duration + ShutdownTimeout time.Duration + WriteTimeout time.Duration + func DefaultConfig() Config + func LoadConfig(opts LoadConfigOptions) (Config, error) + type HealthOutput struct + Body struct{ ... } + type LoadConfigOptions struct + ConfigName string + ConfigPaths []string + ConfigType string + EnvPrefix string + type LoggingConfig struct + Level string + type RateLimitConfig struct + Burst int + RequestsPerMinute int + type Server struct + func NewServer(cfg Config) *Server + func (s *Server) API() huma.API + func (s *Server) Shutdown(ctx context.Context) error + func (s *Server) Start() error