task

package
v0.0.0-...-53b4af0 Latest Latest
Warning

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

Go to latest
Published: Oct 24, 2018 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetDatastore

func GetDatastore() (metrics.Datastore, error)

GetDatastore reads the configuration file and initializes a datastore with its configuration.

func LogFatal

func LogFatal(logger *log.Context, keyvals ...interface{})

func LoggerWithTask

func LoggerWithTask(name, version string) *log.Context

func ReadConfig

func ReadConfig(v interface{}) error

ReadConfig reads the default config file from path (or the environment) variable that overrides it and parses it into v

func RequireConfig

func RequireConfig(logger *log.Context, val, name string)

RequireConfig checks for the given val, exits with error if empty.

Types

This section is empty.

Jump to

Keyboard shortcuts

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