mirror of https://github.com/0xERR0R/blocky.git
26 lines
439 B
Go
26 lines
439 B
Go
package config
|
|
|
|
type (
|
|
APIService httpService
|
|
DoHService httpService
|
|
MetricsService httpService
|
|
)
|
|
|
|
// httpService can be used by any service that uses HTTP(S).
|
|
type httpService struct {
|
|
Addrs httpAddrs `yaml:"addrs"`
|
|
}
|
|
|
|
type httpAddrs struct {
|
|
HTTPAddrs `yaml:",inline"`
|
|
HTTPSAddrs `yaml:",inline"`
|
|
}
|
|
|
|
type HTTPAddrs struct {
|
|
HTTP ListenConfig `yaml:"http"`
|
|
}
|
|
|
|
type HTTPSAddrs struct {
|
|
HTTPS ListenConfig `yaml:"https"`
|
|
}
|