impl

package
v0.0.0-...-8e0b234 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2024 License: OSL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TokenServiceImpl

type TokenServiceImpl struct {
	// contains filtered or unexported fields
}

怎么实现token.Service接口? 定义TokenServiceImpl来实现接口

func NewTokenServiceImpl

func NewTokenServiceImpl(userServiceImpl user.Service) *TokenServiceImpl

func (*TokenServiceImpl) Destory

func (i *TokenServiceImpl) Destory() error

ioc 对象方法约束

func (*TokenServiceImpl) Init

func (i *TokenServiceImpl) Init() error

ioc 对象方法约束

func (*TokenServiceImpl) IssueToken

func (i *TokenServiceImpl) IssueToken(
	ctx context.Context,
	in *token.IssueTokenRequest) (
	*token.Token, error)

登录: 颁发令牌 依赖User模块来检验 用户的密码是否正确

func (*TokenServiceImpl) RevokeToken

func (i *TokenServiceImpl) RevokeToken(
	ctx context.Context,
	in *token.RevokeTokenRequest) (
	*token.Token, error)

退出: 撤销令牌 是否需要保证幂等性,

func (*TokenServiceImpl) ValidateToken

func (i *TokenServiceImpl) ValidateToken(
	ctx context.Context,
	in *token.ValidateTokenRequest) (
	*token.Token, error)

校验令牌

Jump to

Keyboard shortcuts

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