feat: add mapstructure tags

This commit is contained in:
Derrick Hammer 2024-02-23 07:23:33 -05:00
parent dfeb8b29a8
commit b0c4597852
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 5 additions and 5 deletions

View File

@ -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 {