config

package
v0.0.39 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2023 License: AGPL-3.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Debug                    bool
	PIDFile                  string
	Port                     int
	Daemonize                bool
	PasswordSalt             string
	OTLPEndpoint             string
	InitialAdminUserPassword string
	CORSHosts                []string
	OtherSupernodes          []string
	TrustedProxies           []string
	HIBPAPIKey               string
	ServerName               string
	Supernode                bool
	Masquerade               bool
	WireguardTapAddress      string
	NodeIP                   string
	SupernodeZone            string
	DisableMap               bool

	SessionSecret       []byte
	VTUNStartingAddress string
	PostgresDSN         string

	MetricsPort int
	// contains filtered or unexported fields
}

Config stores the application configuration.

func GetConfig

func GetConfig(cmd *cobra.Command) *Config

GetConfig obtains the current configuration

func (*Config) ToString

func (config *Config) ToString() string

ToString returns a string representation of the configuration

Jump to

Keyboard shortcuts

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