services

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Jun 9, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Overview

* @Author: alexander.huang * @Date: 2022-05-26 12:44:17 * @Last Modified by: alexander.huang * @Last Modified time: 2022-05-26 12:44:17

* @Author: alexander.huang * @Date: 2022-05-26 12:44:17 * @Last Modified by: alexander.huang * @Last Modified time: 2022-05-26 12:44:17

* @Author: alexander.huang * @Date: 2022-05-25 02:53:50 * @Last Modified by: alexander.huang * @Last Modified time: 2022-05-25 02:53:50

* @Author: alexander.huang * @Date: 2022-05-18 22:20:50 * @Last Modified by: alexander.huang * @Last Modified time: 2022-05-23 21:40:51

* @Author: alexander.huang * @Date: 2022-05-25 22:53:50 * @Last Modified by: alexander.huang * @Last Modified time: 2022-05-25 22:53:50

* @Author: alexander.huang * @Date: 2022-05-26 12:44:17 * @Last Modified by: alexander.huang * @Last Modified time: 2022-05-26 12:44:17

* @Author: alexander.huang * @Date: 2022-05-19 20:14:50 * @Last Modified by: alexander.huang * @Last Modified time: 2022-05-23 21:40:51

Index

Constants

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

Variables

View Source
var CommentService = new(commentService)
View Source
var FavoriteService = new(favoriteService)
View Source
var FeedService = new(feedService)
View Source
var JwtService = new(jwtService)
View Source
var PublishService = new(publishService)
View Source
var RelationService = new(relationService)
View Source
var UserService = new(userService)

Functions

This section is empty.

Types

type CustomClaims

type CustomClaims struct {
	jwt.StandardClaims
}

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