config

package
v1.0.3 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 17, 2018 License: Apache-2.0 Imports: 5 Imported by: 4

Documentation

Overview

Package config provides the configuration settings to be used by the application at runtime

Index

Constants

View Source
const (
	Verbosity          = "verbosity"
	VerbosityShorthand = "v"
	AlwaysSendTo       = "alwayssendto"
	Storage            = "storage"
	WorkDir            = "workdir"
	Url                = "url"
	OtherNodes         = "othernodes"
	PublicKeys         = "publickeys"
	PrivateKeys        = "privatekeys"
	Port               = "port"
	Socket             = "socket"

	GenerateKeys = "generate-keys"

	BerkeleyDb       = "berkeleydb"
	UseGRPC          = "grpc"
	GrpcJsonPort     = "grpcport"
	NetworkInterface = "networkinterface"

	Tls             = "tls"
	TlsServerChain  = "tlsserverchain"
	TlsServerTrust  = "tlsservertrust"
	TlsKnownServers = "tlsknownservers"
	TlsClientCert   = "tlsclientcert"
	TlsServerCert   = "tlsservercert"
	TlsKnownClients = "tlsknownclients"
	TlsClientChain  = "tlsclientchain"
	TlsClientKey    = "tlsclientkey"
	TlsClientTrust  = "tlsclienttrust"
	TlsServerKey    = "tlsserverkey"
)

Variables

This section is empty.

Functions

func AllSettings

func AllSettings() map[string]interface{}

func GetBool

func GetBool(key string) bool

func GetInt

func GetInt(key string) int

func GetString

func GetString(key string) string

func GetStringSlice

func GetStringSlice(key string) []string

func InitFlags

func InitFlags()

InitFlags initializes all supported command line flags.

func LoadConfig

func LoadConfig(configPath string) error

LoadConfig loads all configuration settings in the provided configPath location.

func ParseCommandLine

func ParseCommandLine()

ParseCommandLine parses all provided command line arguments.

func Usage

func Usage()

Usage prints usage instructions to the console.

Types

This section is empty.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL