config

package
v0.0.0-...-94b8695 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 16, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

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)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL