feat: add mapstructure tags
This commit is contained in:
parent
dfeb8b29a8
commit
b0c4597852
|
@ -14,18 +14,18 @@ type NodeConfig struct {
|
||||||
HTTP HTTPConfig
|
HTTP HTTPConfig
|
||||||
}
|
}
|
||||||
type P2PConfig struct {
|
type P2PConfig struct {
|
||||||
Network string
|
Network string `mapstructure:"network"`
|
||||||
Peers PeersConfig
|
Peers PeersConfig
|
||||||
MaxOutgoingPeerFailures uint
|
MaxOutgoingPeerFailures uint `mapstructure:"max_outgoing_peer_failures"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type PeersConfig struct {
|
type PeersConfig struct {
|
||||||
Initial []string
|
Initial []string `mapstructure:"initial"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type HTTPAPIConfig struct {
|
type HTTPAPIConfig struct {
|
||||||
Domain string
|
Domain string `mapstructure:"domain"`
|
||||||
Port uint
|
Port uint `mapstructure:"port"`
|
||||||
}
|
}
|
||||||
|
|
||||||
type HTTPConfig struct {
|
type HTTPConfig struct {
|
||||||
|
|
Loading…
Reference in New Issue