Documentation ¶
Index ¶
Constants ¶
View Source
const ( 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" 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"
Functions ¶
Types ¶
type BackendConfig ¶
type Options ¶
type Options struct { Env env.Type LogLevel lw.Level LogOutput string TimeOut time.Duration Secure bool CertPath string KeyPath string Host string Listen string BaseURL string Storage StorageType StoragePath string StorageCache bool RequestCache bool Profile bool MastodonCompatible bool }
func (Options) BaseStoragePath ¶
type StorageType ¶
type StorageType string
Click to show internal directories.
Click to hide internal directories.