Documentation
¶
Overview ¶
Package config implements getting params from env/flags/config file
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Initialize ¶
func Initialize()
Types ¶
type AppParams ¶
type AppParams struct { Address *string `env:"ADDRESS" json:"address"` //server address to listen StoreInterval *int `env:"STORE_INTERVAL" json:"restore"` //store interval FileStoragePath *string `env:"FILE_STORAGE_PATH" json:"store_file"` //file storage path Restore *bool `env:"RESTORE"` //restore or not data on start DatabaseDsn *string `env:"DATABASE_DSN" json:"database_dsn"` //db connection dsn SecretKey *string `env:"KEY"` //secret key for signature check ProfileServerAddress *string `env:"PROFILE_SERVER_ADDRESS"` //profile serveraddress to listen CryptoKey *string `env:"CRYPTO_KEY" json:"crypto_key"` //Full filepath to RSA private key Config *string `env:"CONFIG" json:"-"` //filepath to config file }
Click to show internal directories.
Click to hide internal directories.