func newConfigurationDefaults() Configuration {
	c := Configuration{
		ConfigFolder:             "./etc/",
		SocketFolder:             "./tmp",
		TCPListener:              "",
		HTTPListener:             "",
		DatabaseFolder:           "./var/lib",
		BrokerAddress:            "127.0.0.1:4222",
		NatsConnectRetryInterval: 10,
		ProfilingPort:            "",
		PromHostAndPort:          "",
		DefaultMessageTimeout:    10,
		DefaultMessageRetries:    1,
		StartPubREQHello:         30,
		SubscribersDataFolder:    "./data",
		CentralNodeName:          "",
		RootCAPath:               "",
		NkeySeedFile:             "",
		ExposeDataFolder:         "",
		ErrorMessageTimeout:      60,
		ErrorMessageRetries:      10,
		StartSubREQErrorLog:       true,
		StartSubREQHello:          true,
		StartSubREQToFileAppend:   true,
		StartSubREQToFile:         true,
		StartSubREQPing:           true,
		StartSubREQPong:           true,
		StartSubREQCliCommand:     true,
		StartSubREQToConsole:      true,
		StartSubREQHttpGet:        true,
		StartSubREQTailFile:       true,
		StartSubREQCliCommandCont: true,
	}
	return c
}
Get a Configuration struct with the default values set.
package steward
import (
	"flag"
	"fmt"
	"log"
	"os"
	"path/filepath"
	toml "github.com/pelletier/go-toml"
)
type Configuration struct {
	ConfigFolder string
	SocketFolder string
	TCPListener string
	HTTPListener string
	DatabaseFolder string
	NodeName string
	BrokerAddress string
	NatsConnectRetryInterval int
	ProfilingPort string
	PromHostAndPort string
	DefaultMessageTimeout int
	DefaultMessageRetries int
	SubscribersDataFolder string
	CentralNodeName string
	RootCAPath string
	NkeySeedFile string
	ExposeDataFolder string
	ErrorMessageTimeout int
	ErrorMessageRetries int
	StartPubREQHello int
	StartSubREQErrorLog bool
	StartSubREQHello bool
	StartSubREQToFileAppend bool
	StartSubREQToFile bool
	StartSubREQPing bool
	StartSubREQPong bool
	StartSubREQCliCommand bool
	StartSubREQToConsole bool
	StartSubREQHttpGet bool
	StartSubREQTailFile bool
	StartSubREQCliCommandCont bool
}
type ConfigurationFromFile struct {
	ConfigFolder              *string
	SocketFolder              *string
	TCPListener               *string
	HTTPListener              *string
	DatabaseFolder            *string
	NodeName                  *string
	BrokerAddress             *string
	NatsConnectRetryInterval  *int
	ProfilingPort             *string
	PromHostAndPort           *string
	DefaultMessageTimeout     *int
	DefaultMessageRetries     *int
	SubscribersDataFolder     *string
	CentralNodeName           *string
	RootCAPath                *string
	NkeySeedFile              *string
	ExposeDataFolder          *string
	ErrorMessageTimeout       *int
	ErrorMessageRetries       *int
	StartPubREQHello          *int
	StartSubREQErrorLog       *bool
	StartSubREQHello          *bool
	StartSubREQToFileAppend   *bool
	StartSubREQToFile         *bool
	StartSubREQPing           *bool
	StartSubREQPong           *bool
	StartSubREQCliCommand     *bool
	StartSubREQToConsole      *bool
	StartSubREQHttpGet        *bool
	StartSubREQTailFile       *bool
	StartSubREQCliCommandCont *bool
}
func NewConfiguration() *Configuration {
	c := Configuration{}
	return &c
}