package
Version:
v0.0.0-...-c6724dc
Opens a new window with list of versions in this module.
Published: Jan 19, 2024
License: MIT
Opens a new window with license information.
Imports: 3
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Cache struct {
Port string `yaml:"cachePort" envconfig:"CACHE_PORT"`
Host string `yaml:"cacheHost" envconfig:"CACHE_HOST"`
}
type Config struct {
Service Service `yaml:"service"`
Cache Cache `yaml:"cache"`
Pow Pow `yaml:"pow"`
}
type Pow struct {
Complexity int `yaml:"complexity" envconfig:"POW_COMPLEXITY"`
Expiration int64 `yaml:"expiration" envconfig:"POW_EXPIRATION"`
MaxIterations int `yaml:"maxIterations" envconfig:"POW_MAX_ITERATIONS"`
}
type Service struct {
Port string `yaml:"port" envconfig:"SERVICE_PORT"`
Host string `yaml:"host" envconfig:"SERVICE_HOST"`
DataFile string `yaml:"dataFile" envconfig:"DATA_FILE"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.