package
Version:
v0.0.0-...-386bb05
Opens a new window with list of versions in this module.
Published: Jan 29, 2022
License: GPL-3.0
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 Config struct {
Server Server `yaml:"server"`
}
func GetConfiguration() *Config
GetConfiguration retrieves configuration from config file
type Endpoint struct {
Name string `yaml:"name"`
TlsEnabled bool `yaml:"tlsEnabled"`
EnvType string `yaml:"envType"`
}
type Port struct {
Name string `yaml:"name"`
Port int64 `yaml:"port"`
}
type Server struct {
Env string `yaml:"environment"`
Ports []Port `yaml:"ports"`
Endpoints []Endpoint `yaml:"endpoints"`
Timeouts []Timeout `yaml:"timeouts"`
}
type Timeout struct {
Name string `yaml:"name"`
Value int `yaml:"value"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.