From b0c45978522266453d3ebaeecd6e9674a97e0683 Mon Sep 17 00:00:00 2001 From: Derrick Hammer Date: Fri, 23 Feb 2024 07:23:33 -0500 Subject: [PATCH] feat: add mapstructure tags --- config/config.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/config/config.go b/config/config.go index cf1949f..b477980 100644 --- a/config/config.go +++ b/config/config.go @@ -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 {