Documentation ¶
Index ¶
- Constants
- Variables
- func Filter(vs []string, f func(string) bool) []string
- func GetConnectionString() string
- func GetHostname() string
- func GetSecretKey() string
- func IssueError(w http.ResponseWriter, message string, status int)
- func Map[K interface{}, V interface{}](vs []K, f func(K) V) []V
- type Token
- type User
Constants ¶
View Source
const Root = "00000000-0000-0000-0000-000000000000"
Variables ¶
View Source
var Roles = map[int]string{
1: "USER",
2: "ADMIN",
3: "ROOT",
}
Functions ¶
func GetConnectionString ¶
func GetConnectionString() string
func GetHostname ¶
func GetHostname() string
func GetSecretKey ¶
func GetSecretKey() string
func IssueError ¶
func IssueError(w http.ResponseWriter, message string, status int)
Types ¶
Click to show internal directories.
Click to hide internal directories.