services

package
v0.0.0-...-5d42812 Latest Latest
Warning

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

Go to latest
Published: Jul 18, 2023 License: MIT Imports: 16 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 QuotationService = new(quotationService)
View Source
var SmtpService = new(smtpService)
View Source
var StoryService = new(storyService)
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