config

package
v0.0.0-...-9c93a29 Latest Latest
Warning

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

Go to latest
Published: Jan 7, 2020 License: Apache-2.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	// DefaultLogger ...
	DefaultLogger = false
	// DefaultLoggerLevel is the default logging level.
	DefaultLoggerLevel = "warn"
	// DefaultLoggerFormat is the default format of the logger
	DefaultLoggerFormat = "text"
	// DefaultTermSignal is the signal to term the agent.
	DefaultTermSignal = syscall.SIGTERM
	// DefaultReloadSignal is the default signal for reload.
	DefaultReloadSignal = syscall.SIGHUP
	// DefaultKillSignal is the default signal for termination.
	DefaultKillSignal = syscall.SIGINT
	// DefaultVerbose is the default verbosity.
	DefaultVerbose = false
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	// File is a config file provided
	File string
	// Verbose toggles the verbosity
	Verbose bool
	// ReloadSignal
	ReloadSignal syscall.Signal
	// TermSignal
	TermSignal syscall.Signal
	// KillSignal
	KillSignal syscall.Signal
	// Logger ...
	Logger *Logger
}

Config contains a configuration for Autobot

func New

func New() *Config

New returns a new Config

type Logger

type Logger struct {
	// Enabled ...
	Enabled bool
	// Level ...
	Level string
	// Format ...
	Format string
}

Logger ...

Jump to

Keyboard shortcuts

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