Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
)
Functions ¶
func GenerateToken ¶
Types ¶
type ACL ¶
type ACL struct {
RoleName string `json:"role_name,omitempty"`
Description string `json:"description,omitempty"`
Rules []*AccessRule `json:"rules,omitempty"`
}
func DefaultACLs ¶
func DefaultACLs() []*ACL
type AccessRule ¶
type Account ¶
type Account struct {
ID string `json:"id,omitempty" gorethink:"id,omitempty"`
FirstName string `json:"first_name,omitempty" gorethink:"first_name,omitempty"`
LastName string `json:"last_name,omitempty" gorethink:"last_name,omitempty"`
Username string `json:"username,omitempty" gorethink:"username"`
Password string `json:"password,omitempty" gorethink:"password"`
Tokens []*AuthToken `json:"-" gorethink:"tokens"`
Roles []string `json:"roles,omitempty" gorethink:"roles"`
}
type Authenticator ¶
type ServiceKey ¶
Click to show internal directories.
Click to hide internal directories.