Documentation ¶
Index ¶
- Variables
- func GetConstant(name string) (interface{}, error)
- func GetEndpoint(endpoint string) *map[string]string
- func MustGetConstant(name string) interface{}
- func MustGetConstantPath(path string) interface{}
- type Config
- func (cfg *Config) GetConstant(name string) (interface{}, error)
- func (cfg *Config) GetConstantPath(path string) (interface{}, error)
- func (cfg *Config) GetEndpoint(endpoint string) *map[string]string
- func (cfg *Config) MustGetConstant(name string) interface{}
- func (cfg *Config) MustGetConstantPath(path string) interface{}
Constants ¶
This section is empty.
Variables ¶
View Source
var YmlConfig = ReadYmlConfig()
Functions ¶
func GetConstant ¶
func GetEndpoint ¶
func MustGetConstant ¶
func MustGetConstant(name string) interface{}
func MustGetConstantPath ¶
func MustGetConstantPath(path string) interface{}
Types ¶
type Config ¶
type Config struct { Endpoints map[string]map[string]string `yaml:"endpoints"` Constants map[string]interface{} `yaml:"constants"` }
func ReadYmlConfig ¶
func ReadYmlConfig() *Config
func (*Config) GetConstant ¶
func (*Config) GetConstantPath ¶
func (*Config) MustGetConstant ¶
func (*Config) MustGetConstantPath ¶
Click to show internal directories.
Click to hide internal directories.