Versions in this module Expand all Collapse all v0 v0.2.1 Jan 8, 2020 v0.2.0 Jan 8, 2020 Changes in this version + func GetInsecure() bool v0.1.0 May 4, 2017 Changes in this version + const DefaultAdminPassword + const DefaultAdminUsername + const DefaultConfigFile + var AppConfig *appConfig + var Viper *viper.Viper + func AppConfigFromYaml(yamlString string) (*appConfig, error) + func GetAppName() string + func GetHost() string + func GetPort() int + func NewAppConfig() *appConfig + func SaveConfig() error + func UserNewContext(ctx context.Context, u *User) context.Context + type Settings struct + Debug bool + Initialized bool + LogLevel string + type User struct + Id string + Name string + PasswordHash string + Phone string + Role string + Username string + func NewUser() *User + func UserFromContext(ctx context.Context) (*User, bool) + func (u *User) GenerateJwt(secondsToExpiration int64) (string, error) + func (u *User) GetRole() (gorbac.Role, error) + func (u *User) HashPassword(password string) error + func (u *User) ValidatePassword(password string) error