Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type AutoDeleteConfig ¶
AutoDeleteConfig represents the configuration specific for the AutoDelete behaviour
type Config ¶
type Config struct { WebAddress string StorageType shared.StorageType HastebinSupport bool IDLength int IDCharacters string ModificationTokens bool ModificationTokenMaster string ModificationTokenLength int ModificationTokenCharacters string RateLimit string LengthCap int AutoDelete *AutoDeleteConfig Reports *ReportConfig File *FileConfig Postgres *PostgresConfig MongoDB *MongoDBConfig S3 *S3Config }
Config represents the general application configuration structure
var Current *Config
Current holds the currently loaded config
type FileConfig ¶
type FileConfig struct {
Path string
}
FileConfig represents the configuration specific for the file storage driver
type MongoDBConfig ¶
MongoDBConfig represents the configuration specific for the MongoDB storage driver
type PostgresConfig ¶
type PostgresConfig struct {
DSN string
}
PostgresConfig represents the configuration specific for the Postgres storage driver
type ReportConfig ¶
ReportConfig represents the configuration specific for the report system
Click to show internal directories.
Click to hide internal directories.