package
0.0.0-20211007220023-412dc8cf80b3
Repository: https://github.com/naftulikay/golang-webapp.git
Documentation: pkg.go.dev

# Functions

AdminAPI Create a handler which is accessible only by authenticated admins.
No description provided by the author
No description provided by the author
API Create a handler which is accessible by any user, authenticated or not.
CORS Returns a http.Handler wrapper function for adding CORS validation to an application.
CORSAllowedHeaders Return a list of allowed CORS headers.
CORSAllowedMethods Return a list of allowed CORS methods.
CORSOriginValidator Generates a CORS origin validator function.
UserAPI Create a handler which is accessible only by authenticated users and admins.
No description provided by the author

# Type aliases

APIHandlerFunc A HTTP handler which conforms to our API framework.
No description provided by the author