Documentation
¶
Index ¶
Constants ¶
View Source
const DefaultScope = "all"
View Source
const TokenLength = 32
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Token ¶
type Token struct {
Id bson.ObjectId `json:"id,omitempty" bson:"_id"`
User bson.ObjectId `json:"user"`
Name string `json:"name,omitempty" description:"token name"`
Hash string `json:"-"`
HashValue string `json:"value" bson:"-"`
Scopes []string `json:"scopes,omitempty"`
Created time.Time `json:"created,omitempty"`
Updated time.Time `json:"updated,omitempty"`
Removed bool `json:"-"`
}
type TokenList ¶
type TokenList struct {
pagination.Meta `json:",inline"`
Results []*Token `json:"results"`
}
Click to show internal directories.
Click to hide internal directories.