config

package
v0.0.0-...-d779af1 Latest Latest
Warning

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

Go to latest
Published: Oct 10, 2021 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Cfg

type Cfg struct {
	// HTTP Server configs
	HTTP struct {
		Addr     string `toml:"addr"`
		Port     string `toml:"port"`
		CertFile string `toml:"certfile"`
		KeyFile  string `toml:"keyfile"`
		Protocol string `toml:"protocol"`
	} `toml:"http"`

	// Paths
	Paths struct {
		LogsDir string `toml:"logs-dir"`
	} `toml:"paths"`
}

Cfg is the configuration object

func NewCfg

func NewCfg(configFilePath string) (*Cfg, error)

Jump to

Keyboard shortcuts

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