config

package
v0.0.0-...-a3585ed Latest Latest
Warning

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

Go to latest
Published: Jun 21, 2023 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Settings

type Settings struct {
	ServiceAddress string
	ServicePort    uint64
	ServiceTLS     bool

	StatusAddress string
	StatusEnabled bool
	StatusPort    uint64
	StatusTLS     bool

	EtcdEndpoints     []string
	ClientCertPubPath string
	ClientCertKeyPath string
	EtcdTxnTimeout    time.Duration

	LockGroups map[string]uint64
}

Settings stores runtime application configuration

func Parse

func Parse(fpath string) (Settings, error)

Parse parses a TOML configuration file and default values into runtime settings

Jump to

Keyboard shortcuts

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