Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var (
Settings = Configuration{}
)
Functions ¶
func LoadSettings ¶
func LoadSettings()
func SaveSettings ¶
func SaveSettings()
Types ¶
type AtlasMongoConfig ¶
type AtlasMongoConfig struct { Config DatabaseConfig `json:"config"` Host string `json:"host"` Enabled bool `json:"enabled"` ConnectionString string `json:"connection_string"` }
type AuthConfig ¶
type AuthConfig struct { Enabled bool `json:"enabled"` DefaultRoles []RoleConfig `json:"default_roles"` SuperAdmin SuperAdminConfig `json:"super_admin"` }
type Configuration ¶
type Configuration struct { HttpServer http.HttpServer `json:"http_server"` DB DBConfig `json:"db"` Auth AuthConfig `json:"auth"` }
type DBConfig ¶
type DBConfig struct { Local LocalMongoConfig `json:"local"` Atlas AtlasMongoConfig `json:"atlas"` }
type DatabaseConfig ¶
type LocalMongoConfig ¶
type LocalMongoConfig struct { Config DatabaseConfig `json:"config"` Host string `json:"host"` Enabled bool `json:"enabled"` }
type ParamConfig ¶
type PermissionConfig ¶
type PermissionConfig struct { URL string `json:"url"` Rights auth.Rights `json:"rights"` Params []ParamConfig `json:"params"` }
type RightsConfig ¶
type RoleConfig ¶
type RoleConfig struct { Name string `json:"name" bson:"name"` Permissions []PermissionConfig `json:"permissions" bson:"permissions"` }
type SuperAdminConfig ¶
Click to show internal directories.
Click to hide internal directories.