Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func LoggingMiddleware ¶
LoggingMiddleware logs the details of each API request and response.
Types ¶
type CorsOptions ¶
func (CorsOptions) Validate ¶
func (o CorsOptions) Validate() bool
type Middleware ¶
func AllowCors ¶
func AllowCors(options CorsOptions) Middleware
AllowCORS returns a middleware that sets the CORS headers.
Click to show internal directories.
Click to hide internal directories.