Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type AsyncConfig ¶ added in v0.2.1
type AsyncConfig struct {
Name string `yaml:"name"`
Version string `yaml:"version"`
Description string `yaml:"description"`
Docs []AsyncDocumentation `yaml:"docs"`
}
type AsyncDocumentation ¶ added in v0.2.1
type Config ¶
type Config struct {
ExchangeDir string `yaml:"exchange_dir"`
Settings Settings `yaml:"settings"`
RestConfigs map[string]RestConfig `yaml:"rest_configs"`
AsyncConfigs map[string]AsyncConfig `yaml:"async_configs"`
}
func LoadConfig ¶
LoadConfig loads the configuration from a YAML file
type Documentation ¶
type RestConfig ¶
type RestConfig struct {
Name string `yaml:"name"`
Version string `yaml:"version"`
Description string `yaml:"description"`
Docs []Documentation `yaml:"docs"`
}
type URLGroup ¶
type URLGroup struct {
Name string `yaml:"name"`
Description string `yaml:"description"`
URLs []URLItem `yaml:"-"` // Custom unmarshaling
DocType string `yaml:"doc_type"`
SecurityType string `yaml:"security_type"`
}
URLGroup is a group of URLs that are parsed by the same parser
func (URLGroup) MarshalYAML ¶
MarshalYAML implements custom marshaling for URLGroup
Click to show internal directories.
Click to hide internal directories.