Documentation ¶
Index ¶
- func GenerateToken(id, username string) (string, error)
- func GetDataFromHeaderWithKey(ctx context.Context, key string) (string, error)
- func GinContextFromContext(ctx context.Context) (*gin.Context, error)
- func RandomString(n int) string
- func ValidateUserToken(ctx context.Context) (*entity.User, error)
- type Claims
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func GenerateToken ¶
func RandomString ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.