//
pkg.gl
Category
github.com/tsmweb/go-helper-api
middleware
package
1.4.4
Repository:
https://github.com/tsmweb/go-helper-api.git
Documentation:
pkg.go.dev
Overview
Versions
1
Dependencies
4
Dependents
0
Files
44 SLOC
#
Functions
CORS
CORS sets the accepted headers, permitted sources and methods accepted by the request.
GZIP
GZIP compress the http responses.
NewAuth
NewAuth creates a new instance of Auth and receives an jwt.JWT object as a parameter.
#
Interfaces
Auth
Auth validates HTTP requests via token.