Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewHuma ¶
func NewHuma(params HumaParams) huma.API
Types ¶
type Addr ¶ added in v0.3.0
type Addr string
func ListenAddress ¶ added in v0.4.10
func ListenAddressFromEnv ¶ added in v0.4.10
type CorsConfig ¶ added in v0.6.3
type CorsConfig struct { AllowedOrigins []string AllowedMethods []string AllowedHeaders []string ExposedHeaders []string AllowCredentials bool MaxAge int }
func WithCors ¶ added in v0.6.3
func WithCors(config CorsConfig) *CorsConfig
type HumaParams ¶ added in v0.3.0
type MuxParams ¶ added in v0.4.0
type MuxParams struct { fx.In UseCors UseCors `optional:"true"` Cors *CorsConfig `optional:"true"` }
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
func NewRouter ¶
func NewRouter(cfg RouterConfig) *Router
type RouterConfig ¶
type RouterConfig struct { fx.In Mux *chi.Mux Api huma.API AuthMiddleware *auth.Middleware }
Click to show internal directories.
Click to hide internal directories.