Documentation ¶
Index ¶
- Constants
- func AuthJwt(c *gin.Context)
- func GetContext(c *gin.Context) context.Context
- func GetPaging(c *gin.Context) *web.Paging
- func GetUID(c *gin.Context) types.ID
- func Logger(c *gin.Context)
- func NewJwtToken(userID types.ID) (string, error)
- func PagingHandler(c *gin.Context)
- func SetContext(c *gin.Context, ctx context.Context)
- func SetJwtHmacSecret(secret string)
- func SetJwtToHeader(c *gin.Context, userID types.ID) error
- type JwtClaims
- type Validator
Constants ¶
View Source
const (
// RequestIDKey is the key used to store the request ID in the context.
RequestIDKey = "request_id"
)
Variables ¶
This section is empty.
Functions ¶
func PagingHandler ¶ added in v0.0.7
func SetJwtHmacSecret ¶
func SetJwtHmacSecret(secret string)
Types ¶
type JwtClaims ¶
func ParseJwtToken ¶
Click to show internal directories.
Click to hide internal directories.