Discover Packages
github.com/bibi-ic/mata
config
package
Version:
v0.0.0-...-c98df5a
Opens a new window with list of versions in this module.
Published: Apr 27, 2024
License: MIT
Opens a new window with license information.
Imports: 6
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
Documentation
¶
type API struct {
Key []string `mapstructure:"key"`
}
type Cache struct {
Source string `mapstructure:"source"`
Age time .Duration `mapstructure:"age"`
}
type Config struct {
Server HTTP `mapstructure:"http"`
Iframely API `mapstructure:"api"`
DB DB `mapstructure:"db"`
MigrationURL string `mapstructure:"migration_url"`
Cache Cache `mapstructure:"cache"`
Jaeger Jaeger `mapstructure:"jaeger"`
TemplateFS fs .FS
}
Config struct base from structure's config file
Load config from input file (yaml)
type DB struct {
Source string `mapstructure:"source"`
}
type HTTP struct {
Address string `mapstructur:"address"`
Port string `mapstructure:"port"`
}
type Jaeger struct {
Source string `mapstructure:"source"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.