Documentation
¶
Index ¶
Constants ¶
View Source
const ( XdgRuntimeDir = "XDG_RUNTIME_DIR" KeyENV = "ENV" KeyTimeOut = "TIME_OUT" KeyLogLevel = "LOG_LEVEL" KeyLogOutput = "LOG_OUTPUT" KeyHostname = "HOSTNAME" KeyHTTPS = "HTTPS" KeyCertPath = "CERT_PATH" KeyKeyPath = "KEY_PATH" KeyListen = "LISTEN" KeyDBHost = "DB_HOST" KeyDBPort = "DB_PORT" KeyDBName = "DB_NAME" KeyDBUser = "DB_USER" KeyDBPw = "DB_PASSWORD" KeyStorage = "STORAGE" KeyStoragePath = "STORAGE_PATH" KeyCacheDisable = "DISABLE_CACHE" KeyStorageCacheDisable = "DISABLE_STORAGE_CACHE" KeyRequestCacheDisable = "DISABLE_REQUEST_CACHE" KeyStorageIndexDisable = "DISABLE_STORAGE_INDEX" KeyMastodonCompatibilityDisable = "DISABLE_MASTODON_COMPATIBILITY" StorageBoltDB = StorageType("boltdb") StorageFS = StorageType("fs") StorageBadger = StorageType("badger") StoragePostgres = StorageType("postgres") StorageSqlite = StorageType("sqlite") )
View Source
const DefaultStorage = StorageFS
Variables ¶
View Source
var ( Prefix = "fedbox" BaseRuntimeDir = "/var/run" )
Functions ¶
Types ¶
type BackendConfig ¶
type Options ¶
type Options struct { AppName string Version string Env env.Type LogLevel lw.Level LogOutput string TimeOut time.Duration Secure bool CertPath string KeyPath string Hostname string Listen string BaseURL string Storage StorageType StoragePath string StorageCache bool RequestCache bool UseIndex bool Profile bool MastodonCompatible bool ShuttingDown bool }
func LoadFromEnv ¶
func LoadFromEnv() Options
func (Options) BaseStoragePath ¶
func (Options) DefaultSocketPath ¶
func (Options) RuntimePath ¶
type StorageType ¶
type StorageType string
Click to show internal directories.
Click to hide internal directories.