Documentation
¶
Index ¶
- type Conf
- type ContextKey
- func (c ContextKey) Get(ctx context.Context) any
- func (c ContextKey) GetCustomClaims(ctx context.Context) *CustomClaims
- func (c ContextKey) GetString(ctx context.Context) *string
- func (c ContextKey) MustGet(ctx context.Context) string
- func (c ContextKey) MustGetCustomClaims(ctx context.Context) *CustomClaims
- func (c ContextKey) MustGetString(ctx context.Context) string
- type CustomClaims
- type JWT
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Conf ¶
type ContextKey ¶
type ContextKey struct {
Name string
}
func NewContextKey ¶
func NewContextKey(name string) ContextKey
func (ContextKey) GetCustomClaims ¶ added in v0.2.8
func (c ContextKey) GetCustomClaims(ctx context.Context) *CustomClaims
func (ContextKey) GetString ¶ added in v0.2.8
func (c ContextKey) GetString(ctx context.Context) *string
func (ContextKey) MustGetCustomClaims ¶ added in v0.2.8
func (c ContextKey) MustGetCustomClaims(ctx context.Context) *CustomClaims
func (ContextKey) MustGetString ¶ added in v0.2.8
func (c ContextKey) MustGetString(ctx context.Context) string
type CustomClaims ¶
type CustomClaims struct {
jwt.RegisteredClaims
}
Click to show internal directories.
Click to hide internal directories.