Discover Packages
github.com/korovindenis/go-market
internal
adapters
config
package
Version:
v0.0.0-...-db2bfc3
Opens a new window with list of versions in this module.
Published: Jan 15, 2024
License: Apache-2.0
Opens a new window with license information.
Imports: 8
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
func New() (*config, error )
type Accrual struct {
Address string `koanf:"address"`
}
type App struct {
LogsLevel string `koanf:"logs_level"`
SecretKey string `koanf:"secret_key"`
TokenName string `koanf:"token_name"`
TokenLifeTime int `koanf:"token_lifetime"`
}
type Httpserver struct {
Mode string `koanf:"mode"`
Address string `koanf:"address"`
Timeouts struct {
Idle int `koanf:"idle"`
ReadHeader int `koanf:"readHeader"`
Read int `koanf:"read"`
Write int `koanf:"write"`
}
}
type Storage struct {
ConnectionString string `koanf:"connection_string"`
Salt string `koanf:"salt"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.