Documentation ¶
Index ¶
- func GetHostDir(dir string) bool
- func GetView(cfg *Config, name string) (*template.Template, error)
- func IsRootDir(path string) bool
- func RunComponent(cfg *Config, reqHost string, name string, items []string, ...) (*template.Template, error)
- func StartAccept(cfg *Config, reqHost string, name string, fname string, actFunc string, ...) map[string]string
- type Config
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Config ¶
type Config struct { Port string `json:"port"` SSLPort string `json:"ssl_port"` RootDir string `json:"root_dir"` File404 string `json:"file_404"` FileError string `json:"file_error"` }
Config main node loaded in the struct from configurate file.
func ParseConfig ¶
ParseConfig читает файл конфига и возращает в виде объекта
Click to show internal directories.
Click to hide internal directories.