Documentation
¶
Index ¶
Constants ¶
View Source
const GroupID = 100 // users
Variables ¶
View Source
var ConfigError bool
Functions ¶
func GetHTTPClient ¶
Types ¶
type Config ¶
type Config struct {
TLS struct {
CA string
Key string
Cert string
}
Debug bool
URL string
TokenFile string
UserFile string
}
var AppConfig *Config
type User ¶
type User struct {
Admin bool `json:"is_staff"`
Email string `json:"email"`
ID uint `json:"id"`
UID uint `json:"uid"`
Username string `json:"username"`
}
func (User) GetPasswdLine ¶
func (*User) ReadUserFile ¶ added in v0.1.9
func (User) WriteUserFile ¶ added in v0.1.9
Click to show internal directories.
Click to hide internal directories.