Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Token ¶
type Token struct { SubKind Subject `json:"sub_kind"` Sub string `json:"sub"` ProjectID uint `json:"project_id"` IBy uint `json:"iby"` IAt *time.Time `json:"iat"` }
func GetTokenForAPI ¶
func GetTokenForUser ¶
func GetTokenFromEncoded ¶
func GetTokenFromEncoded(tokenString string, conf *TokenGeneratorConf) (*Token, error)
func (*Token) EncodeToken ¶
func (t *Token) EncodeToken(conf *TokenGeneratorConf) (string, error)
type TokenGeneratorConf ¶
type TokenGeneratorConf struct {
TokenSecret string
}
Click to show internal directories.
Click to hide internal directories.