package
Version:
v0.0.0-...-52789aa
Opens a new window with list of versions in this module.
Published: Nov 23, 2018
License: BSD-3-Clause
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type BearerToken struct {
AccessToken string `json:"token,omitempty"`
Type string `json:"tokenType"`
RefreshToken string `json:"refreshToken,omitempty"`
}
BearerToken is the struct which is exposed by the /auth endpoint
type Error struct {
Err string `json:"err"`
}
Error describe error serialization.
TaskAns hold Task attributes and state fields.
TasksAns is an array of TaskAns.
type Token struct {
Token string `db:"token"`
UserID string `db:"user_id"`
Roles []string `db:"roles"`
Type string `db:"type"`
CreatedAt time.Time `db:"created_at"`
}
Token describe token serialization.
Tokens is a slice of Token
type User struct {
ID string `json:"id" sql:"user_id,pk"`
Name string `json:"name"`
Password string `json:"password,omitempty"`
Roles []string `json:"roles,omitempty"`
CreatedAt time.Time `json:"created_at"`
}
User holds user attributes.
Users defined an array of user.
Source Files
¶
Click to show internal directories.
Click to hide internal directories.