Documentation ¶
Index ¶
- Variables
- type TokenServiceImpl
- func (u *TokenServiceImpl) AllowOverwrite() bool
- func (u *TokenServiceImpl) Close(ctx context.Context) error
- func (u *TokenServiceImpl) Init() error
- func (i *TokenServiceImpl) Login(ctx context.Context, req *token.LoginRequst) (*token.Token, error)
- func (i *TokenServiceImpl) Logout(ctx context.Context, req *token.LoginOutRequst) error
- func (u *TokenServiceImpl) Name() string
- func (u *TokenServiceImpl) Priority() int
- func (c *TokenServiceImpl) ValiateToken(ctx context.Context, req *token.ValiateTokenRequst) (*token.Token, error)
- func (u *TokenServiceImpl) Version() string
Constants ¶
This section is empty.
Variables ¶
View Source
var (
AppName = "token"
)
Functions ¶
This section is empty.
Types ¶
type TokenServiceImpl ¶
type TokenServiceImpl struct {
// contains filtered or unexported fields
}
func (*TokenServiceImpl) AllowOverwrite ¶
func (u *TokenServiceImpl) AllowOverwrite() bool
func (*TokenServiceImpl) Init ¶
func (u *TokenServiceImpl) Init() error
func (*TokenServiceImpl) Login ¶
func (i *TokenServiceImpl) Login(ctx context.Context, req *token.LoginRequst) (*token.Token, error)
登灵接口(额发Token)
func (*TokenServiceImpl) Logout ¶
func (i *TokenServiceImpl) Logout(ctx context.Context, req *token.LoginOutRequst) error
登灵接口(销毁Token)
func (*TokenServiceImpl) Name ¶
func (u *TokenServiceImpl) Name() string
func (*TokenServiceImpl) Priority ¶
func (u *TokenServiceImpl) Priority() int
func (*TokenServiceImpl) ValiateToken ¶
func (c *TokenServiceImpl) ValiateToken(ctx context.Context, req *token.ValiateTokenRequst) (*token.Token, error)
校验Token 是给內部中间层使用 身份校验层
func (*TokenServiceImpl) Version ¶
func (u *TokenServiceImpl) Version() string
Click to show internal directories.
Click to hide internal directories.