daemon

package
v1.1.1-mysql Latest Latest
Warning

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

Go to latest
Published: Mar 29, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	APP  = "bacula_exporter"
	VER  = "1.1.0"
	DESC = "Prometheus Exporter for Bacula"
)

Basic info

View Source
const (
	OPT_CONFIG   = "c:config"
	OPT_NO_COLOR = "nc:no-color"
	OPT_HELP     = "h:help"
	OPT_VERSION  = "v:version"
)

Options

View Source
const (
	DB_USER       = "db:username"
	DB_PASSWORD   = "db:password"
	DB_HOST       = "db:host"
	DB_PORT       = "db:port"
	DB_NAME       = "db:name"
	DB_SSLMODE    = "db:sslmode"
	HTTP_IP       = "http:ip"
	HTTP_PORT     = "http:port"
	HTTP_ENDPOINT = "http:endpoint"
	LOG_OUTPUT    = "log:output"
	LOG_DIR       = "log:dir"
	LOG_FILE      = "log:file"
	LOG_PERMS     = "log:perms"
	LOG_LEVEL     = "log:level"
)

Configuration file props

View Source
const (
	LOG_OUTPUT_FILE    = "file"
	LOG_OUTPUT_CONSOLE = "console"
)

Logger info

View Source
const (
	DB_FORMAT = "%s:%s@(%s:%s)/%s"
)

DB info

Variables

This section is empty.

Functions

func Init

func Init()

Types

type Env

type Env struct {
	DB rdbms.Datastore
}

Environment struct which contains models

Jump to

Keyboard shortcuts

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