Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { Vars map[string]string `yaml:"vars,omitempty"` Port string `yaml:"port"` Services []Service `yaml:"services"` // contains filtered or unexported fields }
Config is the rout Config struct
func InitConfig ¶
func LoadConfig ¶
LoadConfig load configuration yaml file content from the specified path
type Service ¶
type Service struct { Port string `yaml:"port,omitempty"` Name string `yaml:"name,omitempty"` Type string `yaml:"type,omitempty"` HTTPConfig httpService.ServerConfig `yaml:"http_config,omitempty"` JSONDBConfig jsonServerService.JSONDBConfig `yaml:"json_server_config,omitempty"` FilesServerConfig filesServerService.FilesServerConfig `yaml:"static_server_config,omitempty"` }
Service is the Service level configuration struct
Click to show internal directories.
Click to hide internal directories.