Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( //ErrInvalidToken is returned when authenticate is called with invalide token. ErrInvalidToken = errors.New("invalid token") //ErrNoToken is returned when authenticate is called with no token. ErrNoToken = errors.New("no token") )
Functions ¶
Types ¶
type API ¶
type API struct {
// contains filtered or unexported fields
}
API describe the token authenticate.
func NewAPI ¶
func NewAPI(tokens *accesstoken.CredentialStore) *API
NewAPI create a token authenticate object.
Click to show internal directories.
Click to hide internal directories.