services

package
v0.0.0-...-2f55e15 Latest Latest
Warning

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

Go to latest
Published: Dec 21, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TokenType    = "bearer"
	AppGuardName = "app"
)

Variables

View Source
var JwtService = new(jwtService)
View Source
var MediaService = new(mediaService)
View Source
var UserService = new(userService)

Functions

This section is empty.

Types

type CustomClaims

type CustomClaims struct {
	jwt.RegisteredClaims
}

CustomClaims 自定义 Claims

type JwtUser

type JwtUser interface {
	GetUid() string
}

type TokenOutPut

type TokenOutPut struct {
	AccessToken string `json:"access_token"`
	ExpiresIn   int    `json:"expires_in"`
	TokenType   string `json:"token_type"`
}

Jump to

Keyboard shortcuts

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