# Functions
ErrHeaderRequired return if header not required.
ErrInvalidFormat return if header has invalid format.
GetAcceptedLanguages extracts accepted languages from context.
No description provided by the author
MustGetClientIP attempts to extract client IP address using ClientIPContextKey from context.
MustGetFingerprint attempts to extract client fingerprint using FingerPrintContextKey from context.
MustGetSessionID attempts to extract session ID using RequestIDContextKey from context.
MustGetTokenID attempts to extract token ID using TokenIDContextKey from context.
MustGetUserAgent attempts to extract client IP address using UserAgentContextKey from context.
MustGetUserID attempts to extract user ID using RequestIDContextKey from context.
MustGetUserRole attempts to extract user role using UserRoleContextKey from context It panics if value was not found in context.
PrepareContext is a gin middleware which adds values from header to context.
RequestHeaders extracts saved headers from context.
RequestHeadersMap extracts saved headers from context as map[string]string (useful for resty).
RequestXHeadersMap works like RequestHeadersMap but returns only "X-" headers.
RequireAdminRole is a gin middleware which requires admin role.
RequireHeaders is a gin middleware to ensure that headers is set.
SaveHeaders is a gin middleware which saves headers to request context.
No description provided by the author
SubstituteUserMiddleware replaces user id in context with user id from query if it set and user is admin.
ValidateQueryParamsMiddleware validates query parameters with provided tags.
ValidateURLParamsMiddleware validates URL parameters with provided tags.
# Constants
Keys to inject data to context.
No description provided by the author
No description provided by the author
Extrernal headers.
Keys to inject data to context.
Keys to inject data to context.
No description provided by the author
No description provided by the author
Keys to inject data to context.
Internal headers.
Internal headers.
Keys to inject data to context.
Internal headers.
Keys to inject data to context.
Internal headers.
Extrernal headers.
Internal headers.
Internal headers.
Keys to inject data to context.
Internal headers.
Internal headers.
Internal headers.
Keys to inject data to context.
Internal headers.
Internal headers.
# Structs
No description provided by the author
No description provided by the author
No description provided by the author