settings

package
v1.1.1 Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Configuration added in v0.14.0

type Configuration struct {
	Name    string            `toml:"name"`
	Address string            `toml:"address"`
	Port    int               `toml:"port"`
	Logging *Logging          `toml:"logging"`
	TLS     *TLSConfiguration `toml:"tls"`
}

func LoadConfig added in v0.14.0

func LoadConfig() (Configuration, error)

type Environment

type Environment struct {
	HostName string `env:"HOSTNAME"`
}

func LoadEnvironment

func LoadEnvironment() (Environment, error)

type Logging added in v1.0.0

type Logging struct {
	Development bool
}

type TLSConfiguration added in v1.0.0

type TLSConfiguration struct {
	Enabled      bool
	KeyFilePath  string
	CertFilePath string
}

Jump to

Keyboard shortcuts

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