alhp-web/utils.go

25 lines
376 B
Go

package main
type Conf struct {
DB struct {
Driver string
ConnectTo string `yaml:"connect_to"`
} `yaml:"db"`
Logging struct {
Level string
}
Httpd struct {
CORSAllowDomains []string `yaml:"cors_allow_domains"`
Listen []struct {
Socket string
Host string
Port int
}
Timeout struct {
Read int
Write int
Idle int
}
}
}