fix: add more mapstructure tags
This commit is contained in:
parent
af3cb367bb
commit
3a7bf94a08
|
@ -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"`
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue