utils

package
v0.0.0-...-584c255 Latest Latest
Warning

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

Go to latest
Published: Aug 12, 2019 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Configuration configFiles
View Source
var Console console

Console instance

View Source
var RPC rpcClient

Functions

func NewConfig

func NewConfig() *configFiles

Config object constructor

func NewConsole

func NewConsole() *console

NewConsole constructor

func NewLabels

func NewLabels(addColon bool, r, g, b uint8) *labels

func RPCClient

func RPCClient() *rpcClient

RPCClient object constructor

Types

type LoggerController

type LoggerController struct {
	// contains filtered or unexported fields
}

func NewLoggerController

func NewLoggerController(nfo bool, warn bool, err bool, dbg bool) *LoggerController

func (*LoggerController) Debug

func (logger *LoggerController) Debug(message string, args ...string)

Log debug level

func (*LoggerController) Error

func (logger *LoggerController) Error(message string, args ...string)

Log error level

func (*LoggerController) Fatal

func (logger *LoggerController) Fatal(message string, args ...string)

Log fatal message and quit

func (*LoggerController) Info

func (logger *LoggerController) Info(message string, args ...string)

Log info level

func (*LoggerController) Warning

func (logger *LoggerController) Warning(message string, args ...string)

Log warning level

Jump to

Keyboard shortcuts

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