config

package
v0.0.0-...-6bf85cd Latest Latest
Warning

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

Go to latest
Published: Dec 15, 2021 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package config Created by RTT. Author: teocci@yandex.com on 2021-Aug-23

Index

Constants

This section is empty.

Variables

View Source
var (
	Syslog  = false // Run logger will output into the syslog
	Verbose = true  // Run in verbose mode

	File    = ""      // Configuration file to load
	TempDir = "./tmp" // Temporal directory
	Version = false   // Print version info and exit

	LogLevel  = "info"         // Log level to output [fatal|error|info|debug|trace]
	LogFile   = ""             // File where the logger will output
	LogConfig logger.LogConfig // configuration for the logger
	Log       *logger.Logger   // Central logger for the app
)

Functions

func AddFlags

func AddFlags(cmd *cobra.Command)

AddFlags adds the available cli flags

func LoadConfigFile

func LoadConfigFile() error

LoadConfigFile reads the specified config file

func LoadLogConfig

func LoadLogConfig()

Types

This section is empty.

Jump to

Keyboard shortcuts

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