utils

package
v0.0.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2022 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const JWT_CONTEXT_KEY = "jwt_context_key"

Variables

This section is empty.

Functions

func CreateJwtToken

func CreateJwtToken(name string, dcId int) (string, error)

func GetLogger

func GetLogger() *zap.Logger

func NewLoggerServer

func NewLoggerServer()

func ParseToken

func ParseToken(token string) (jwt.MapClaims, error)

Types

type Token

type Token struct {
	Name string
	DcId int
	jwt.StandardClaims
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL