Documentation
¶
Index ¶
Constants ¶
View Source
const ( HorizonAppUserToServerAccessTokenPrefix = "hu_" OauthAPPAccessTokenPrefix = "ho_" AccessTokenPrefix = "ha_" RefreshTokenPrefix = "hr_" )
ref: https://github.blog/2021-04-05-behind-githubs-new-authentication-token-formats/
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CodeGenerator ¶
type CodeGenerator interface {
Generate(info *CodeGenerateInfo) string
}
func NewAuthorizeGenerator ¶
func NewAuthorizeGenerator() CodeGenerator
func NewGeneralAccessTokenGenerator ¶
func NewGeneralAccessTokenGenerator() CodeGenerator
func NewHorizonAppUserToServerAccessGenerator ¶
func NewHorizonAppUserToServerAccessGenerator() CodeGenerator
func NewOauthAccessGenerator ¶
func NewOauthAccessGenerator() CodeGenerator
func NewRefreshTokenGenerator ¶
func NewRefreshTokenGenerator() CodeGenerator
Click to show internal directories.
Click to hide internal directories.