Documentation
¶
Overview ¶
* Arc - Copyleft of Simone 'evilsocket' Margaritelli. * evilsocket at protonmail dot com * https://www.evilsocket.net/ * * See LICENSE.
* Arc - Copyleft of Simone 'evilsocket' Margaritelli. * evilsocket at protonmail dot com * https://www.evilsocket.net/ * * See LICENSE.
Index ¶
Constants ¶
View Source
const ( APP_NAME = "arcd" APP_VERSION = "1.1.2" )
Variables ¶
View Source
var Conf = Configuration{ Address: defAddress, Port: defPort, Database: defDatabaseName, Secret: defHMacSecret, Username: defUsername, Password: defPassword, TokenDuration: defTokenDuration, Compression: defCompression, Backups: bkConfig{ Enabled: defBackupsEnabled, }, Scheduler: schConfig{ Enabled: true, Period: defSchedulerPeriod, Reports: rpConfig{ Enabled: false, RateLimit: defRateLimit, }, }, }
Functions ¶
Types ¶
type Configuration ¶
type Configuration struct {
Address string `json:"address"`
Port int `json:"port"`
Certificate string `json:"certificate"`
Key string `json:"key"`
Database string `json:"database"`
Secret string `json:"secret"`
Username string `json:"username"`
Password string `json:"password"`
TokenDuration int `json:"token_duration"`
Compression bool `json:"compression"`
CheckExpired int `json:"check_expired"`
Scheduler schConfig `json:"scheduler"`
Backups bkConfig `json:"backups"`
}
Arc server configuration. swagger:response
func (Configuration) Auth ¶
func (c Configuration) Auth(username, password string) bool
Click to show internal directories.
Click to hide internal directories.