Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Issuer ¶
type Issuer interface { Init() error GrantType() token.GRANT_TYPE IssueToken(context.Context, *token.IssueTokenRequest) (*token.Token, error) IssueCode(context.Context, *code.IssueCodeRequest) (*code.Code, error) }
颁发器能不能同时支持颁发Token和颁发验证码
func Get ¶
func Get(gt token.GRANT_TYPE) Issuer
Click to show internal directories.
Click to hide internal directories.