package
Version:
v1.0.5
Opens a new window with list of versions in this module.
Published: May 11, 2021
License: MIT
Opens a new window with license information.
Imports: 2
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
type Config struct {
Port string `mapstructure:"port"`
Sources []Source `mapstructure:"sources"`
}
Config is the entity that holds all the
configuration of the config file
New initializes a Config from the v
type Source struct {
Name string `mapstructure:"name"`
Canonical string `mapstructure:"canonical"`
Token string `mapstructure:"token"`
APIKey string `mapstructure:"api_key"`
}
Source it's the configuration of each one of
the supported sources
Source Files
¶
Click to show internal directories.
Click to hide internal directories.