config

package
v0.0.0-...-2ace025 Latest Latest
Warning

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

Go to latest
Published: Apr 10, 2022 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 Config

type Config struct {
	Address string
	Socket  string
	Logging Logging
}

func ReadConfig

func ReadConfig() (*Config, error)

func ReadConfigFromFile

func ReadConfigFromFile(n string) (*Config, error)

func (Config) NewLogger

func (c Config) NewLogger() (logging.Logger, error)

type Logging

type Logging struct {
	// Target defines the log target; must be either STDOUT or SYSLOG
	Target string

	// Debug defines, whether to output debug messages
	Debug bool
}

Logging defines the log configuration

Jump to

Keyboard shortcuts

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