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