package
0.0.0-20240224082647-fac769ef5aa3
Repository: https://github.com/wangzhen94/iam.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

Context is a middleware that injects common prefix fields to gin.Context.
Cors add cors headers.
GetDefaultLogFormatterWithRequestID returns gin.LogFormatter with 'RequestID'.
No description provided by the author
No description provided by the author
No description provided by the author
No description provided by the author
NoCache is a middleware function that appends headers to prevent the client from caching the HTTP response.
Options is a middleware function that appends headers for options requests and aborts then exits the middleware chain and ends the request.
Publish publish a redis event to specified redis channel when some action occurred.
RequestID is a middleware that injects a 'X-Request-ID' into the context and request/response header of each request.
Secure is a middleware function that appends security and resource access headers.
Validation make sure users have the right resource permission and operation.

# Constants

UsernameKey defines the key in gin context which represents the owner of the secret.
XRequestIDKey defines X-Request-ID key string.

# Variables

Middlewares store registered middlewares.
No description provided by the author

# Structs

No description provided by the author

# Interfaces

No description provided by the author