command

package
v1.0.0-rc2 Latest Latest
Warning

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

Go to latest
Published: Nov 12, 2021 License: GPL-2.0 Imports: 10 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Command

type Command struct {
	Flags  *config.Flags
	Config *config.Config
}

Command provides factories for creating Redis and Database connections from Config.

func New

func New() *Command

New creates and returns a new Command, parses CLI flags and YAML the config, and initializes the logger.

func (Command) Database

func (c Command) Database(l *logging.Logger) (*icingadb.DB, error)

Database creates and returns a new icingadb.DB connection from config.Config.

func (Command) Redis

func (c Command) Redis(l *logging.Logger) (*icingaredis.Client, error)

Redis creates and returns a new icingaredis.Client connection from config.Config.

Jump to

Keyboard shortcuts

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