impl

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 8, 2025 License: MIT Imports: 10 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 {
	ioc.ObjectImpl

	// 自动刷新
	AutoRefresh       bool   `json:"auto_refresh" toml:"auto_refresh" yaml:"auto_refresh" env:"AUTO_REFRESH"`
	RefreshTTSecond   uint64 `json:"refresh_ttl" toml:"refresh_ttl" yaml:"refresh_ttl" env:"REFRESH_TTL"`
	MaxActiveApiToken uint8  `json:"max_active_api_token" toml:"max_active_api_token" yaml:"max_active_api_token" env:"MAX_ACTIVE_API_TOKEN"`
	// contains filtered or unexported fields
}

func (*TokenServiceImpl) DescribeToken

func (i *TokenServiceImpl) DescribeToken(ctx context.Context, req *token.DescribeTokenRequest) (*token.Token, error)

func (*TokenServiceImpl) Init

func (i *TokenServiceImpl) Init() error

func (*TokenServiceImpl) IssueToken

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

func (*TokenServiceImpl) Name

func (i *TokenServiceImpl) Name() string

Name 定义托管到 ioc 的名称

func (*TokenServiceImpl) QueryToken

func (*TokenServiceImpl) RevokeToken

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

RevokeToken 撤销 token 登出

func (*TokenServiceImpl) ValidateToken

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

Jump to

Keyboard shortcuts

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