Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Access ¶
type Access struct {
AccessCookieName string `toml:"api_access_cookie_name"`
SigningToken string `toml:"api_signing_token"`
}
Config is a structure containing global website configuration.
See the comments for Server and PageContext for more details.
type Admin ¶
type Admin struct {
AdminAccessCookieName string `toml:"api_admin_access_cookie_name"`
Key0 string `toml:"api_admin_key_0"`
Key1 string `toml:"api_admin_key_1"`
Key2 string `toml:"api_admin_key_2"`
Key3 string `toml:"api_admin_key_3"`
TOTP string `toml:"api_admin_totp"`
URL string `toml:"api_admin_url"`
}
Config is a structure containing global website configuration.
See the comments for Server and PageContext for more details.
type Config ¶
type Config struct {
Server Server `toml:"server"`
Database Database `toml:"database"`
Mail Mail `toml:"mail"`
}
Config is a structure containing global website configuration.
See the comments for Server and PageContext for more details.
type Database ¶
type Database struct {
Host string `toml:"api_db_host"`
Bucket string `toml:"api_db_bucket"`
User string `toml:"api_db_user"`
Password string `toml:"api_db_pass"`
SSLMode string `toml:"api_db_sslmode"`
}
Config is a structure containing global website configuration.
See the comments for Server and PageContext for more details.
type Mail ¶
type Mail struct {
Enabled bool `toml:"api_mail_enabled"`
Host string `toml:"api_mail_host"`
User string `toml:"api_mail_user"`
Password string `toml:"api_mail_pass"`
Port int `toml:"api_mail_port"`
}
Config is a structure containing global website configuration.
See the comments for Server and PageContext for more details.
type Server ¶
type Server struct {
Debug bool `toml:"api_debug"`
Port string `toml:"api_port"`
DomainName string `toml:"api_domain_name"`
Version string `toml:"api_version"`
Commit string `toml:"api_commit"`
Access Access `toml:"access"`
Admin Admin `toml:"admin"`
ServiceURL ServiceURL `toml:"service_url"`
}
Config is a structure containing global website configuration.
See the comments for Server and PageContext for more details.
type ServiceURL ¶
type ServiceURL struct {
AFC string `toml:"api_service_url_afc"`
BSWDI string `toml:"api_service_url_bswdi"`
SSO string `toml:"api_service_url_sso"`
}
Config is a structure containing global website configuration.
See the comments for Server and PageContext for more details.