fix: add more mapstructure tags

This commit is contained in:
Derrick Hammer 2024-02-27 03:11:00 -05:00
parent af3cb367bb
commit 3a7bf94a08
Signed by: pcfreak30
GPG Key ID: C997C339BE476FF2
1 changed files with 6 additions and 6 deletions

View File

@ -7,15 +7,15 @@ import (
) )
type NodeConfig struct { type NodeConfig struct {
P2P P2PConfig P2P P2PConfig `mapstructure:"p2p"`
KeyPair *ed25519.KeyPairEd25519 KeyPair *ed25519.KeyPairEd25519
DB *bolt.DB DB *bolt.DB
Logger *zap.Logger Logger *zap.Logger
HTTP HTTPConfig HTTP HTTPConfig `mapstructure:"http"`
} }
type P2PConfig struct { type P2PConfig struct {
Network string `mapstructure:"network"` Network string `mapstructure:"network"`
Peers PeersConfig Peers PeersConfig `mapstructure:"peers"`
MaxOutgoingPeerFailures uint `mapstructure:"max_outgoing_peer_failures"` MaxOutgoingPeerFailures uint `mapstructure:"max_outgoing_peer_failures"`
} }
@ -29,5 +29,5 @@ type HTTPAPIConfig struct {
} }
type HTTPConfig struct { type HTTPConfig struct {
API HTTPAPIConfig API HTTPAPIConfig `mapstructure:"api"`
} }