package
0.0.0-20250118164806-5041dba8c4b1
Repository: https://github.com/go-lumen/lumen-api.git
Documentation: pkg.go.dev

# Functions

AuthenticationMiddleware allows to analyze the token and check that it is valid.
AuthorizationMiddleware allows granting access to a resource or not.
ConfigMiddleware allows to use viper configuration parameters set in .env files.
CorsMiddleware generates a middleware handler function that works inside of a Gin request to set the correct CORS headers.
EmailMiddleware allows to retrieve EmailSender.
ErrorMiddleware with logging if there is an error.
StoreMongoMiddleware allows to setup MongoDB database.
StorePostgreMiddleware allows to setup SQL database.
TextMiddleware allows to retrieve the TextSender.

# Constants

AllowCredentialsKey string key.
AllowHeadersKey string key.
AllowMethodsKey string key.
AllowOriginKey string key.
ExposeHeadersKey string key.
MaxAgeKey string key.
OriginKey string key.
RequestHeadersKey string key.
RequestMethodKey string key.

# Structs

Config defines the configuration options available to control how the CORS middleware should function.