Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func IsInvalidConfig ¶
IsInvalidConfig asserts invalidConfigError.
Types ¶
type Config ¶
type Config struct { Log *zap.SugaredLogger AllowedOrigins []string }
type Middleware ¶
type Middleware struct { Cors *cors.Middleware // contains filtered or unexported fields }
func New ¶
func New(config Config) (*Middleware, error)
Click to show internal directories.
Click to hide internal directories.