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.0.5" )
Variables ¶
View Source
var Conf = Configuration{ Address: defAddress, Port: defPort, Database: defDatabaseName, Secret: defHMacSecret, Username: defUsername, Password: defPassword, TokenDuration: defTokenDuration, Compression: defCompression, TLS: tlsConfig{ Enabled: false, }, Backups: bkConfig{ Enabled: defBackupsEnabled, }, Scheduler: schConfig{ Enabled: true, Period: defSchedulerPeriod, }, }
Functions ¶
Types ¶
type Configuration ¶
type Configuration struct {
Address string `json:"address"`
Port int `json:"port"`
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"`
TLS tlsConfig `json:"tls"`
}
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.