Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrMissingAppID implies that the payload of API key does NOT contain app ID. ErrMissingAppID = errors.New("missing app id") // ErrMissingKey implies that the payload of API key does NOT contain secret key. ErrMissingKey = errors.New("missing key") )
Functions ¶
This section is empty.
Types ¶
type APIKey ¶
APIKey represents the payload of an API key.
func NewAPIKey ¶
func NewAPIKey(payload crypto.TokenPayload) (APIKey, error)
NewAPIKey parses APIKey from token payload.
func (*APIKey) NewTokenPayload ¶
func (a *APIKey) NewTokenPayload() crypto.TokenPayload
NewTokenPayload converts API key into token payload.
Click to show internal directories.
Click to hide internal directories.