mirror of
https://github.com/daeuniverse/dae.git
synced 2025-01-03 13:31:00 +07:00
chore: refine config
This commit is contained in:
parent
c15c0ee410
commit
94f3ba4ee6
@ -84,14 +84,14 @@ type Dns struct {
|
|||||||
|
|
||||||
type Routing struct {
|
type Routing struct {
|
||||||
Rules []*config_parser.RoutingRule `mapstructure:"_"`
|
Rules []*config_parser.RoutingRule `mapstructure:"_"`
|
||||||
Fallback FunctionOrString `mapstructure:"fallback"`
|
Fallback FunctionOrString `mapstructure:"fallback" default:"direct"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type Config struct {
|
type Config struct {
|
||||||
Global Global `mapstructure:"global" required:"" desc:"GlobalDesc"`
|
Global Global `mapstructure:"global" required:"" desc:"GlobalDesc"`
|
||||||
Subscription []KeyableString `mapstructure:"subscription"`
|
Subscription []KeyableString `mapstructure:"subscription"`
|
||||||
Node []KeyableString `mapstructure:"node"`
|
Node []KeyableString `mapstructure:"node"`
|
||||||
Group []Group `mapstructure:"group" required:"" desc:"GroupDesc"`
|
Group []Group `mapstructure:"group" desc:"GroupDesc"`
|
||||||
Routing Routing `mapstructure:"routing" required:""`
|
Routing Routing `mapstructure:"routing" required:""`
|
||||||
Dns Dns `mapstructure:"dns" desc:"DnsDesc"`
|
Dns Dns `mapstructure:"dns" desc:"DnsDesc"`
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user