Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
func Initialize(flags *ServerFlags) error
Types ¶
type ServerFlags ¶
type ServerFlags struct { Address string `env:"ADDRESS" json:"address"` StoreInterval int `env:"STORE_INTERVAL" json:"store_interval"` FileStoragePath string `env:"FILE_STORAGE_PATH" json:"store_file"` Restore bool `env:"RESTORE" json:"restore"` DBConnection string `env:"DATABASE_DSN" json:"database_dsn"` HashKey string `env:"KEY" json:"hash_key"` MemProfile string `env:"MEM_PROFILE" json:"mem_profile"` CryptoKey string `env:"CRYPTO_KEY" json:"crypto_key"` TrustedSubnet string `env:"TRUSTED_SUBNET" json:"trusted_subnet"` ExchangeMode string `env:"EXCHANGE_MODE" json:"exchange_mode"` Config string `env:"CONFIG" json:"config"` }
func ReadConfig ¶
func ReadConfig() (*ServerFlags, error)
Click to show internal directories.
Click to hide internal directories.