package
1.0.0
Repository: https://github.com/best-expendables/router.git
Documentation: pkg.go.dev

# Functions

AccessLog records all requests processed by the server.
ACL grants access for custom rules.
Authentication looking for user in headers and inject user to context.
Authorized grants access for non-guest users.
ContextLogger initialize logger entry for request context Required for all routers as first middleware! At that moment we don't see reason pass loggerFactory to the each middleware - therefore all middlewares uses logger from context, otherwise will be used global logger and information could be incomplete.
Newrelic create new transaction and set it to request context.
OnlyRoles grants access for given roles.
No description provided by the author
Recoverer panic error handling.
RequestID middleware takes request id from headers, set it into the context and pass to response headers.

# Variables

AccessForbidden users doesn't have required missing role.
AccessGranted successful authorization.
AccessUnauthorized user unauthorized.

# Structs

No description provided by the author
AccessLogOptions for request or response body.
No description provided by the author

# Interfaces

No description provided by the author
No description provided by the author

# Type aliases

No description provided by the author
No description provided by the author