common

package
v1.4.5 Latest Latest
Warning

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

Go to latest
Published: Feb 29, 2016 License: Apache-2.0 Imports: 8 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Log *logrus.Logger
)

Functions

func Assert added in v0.11.0

func Assert(test bool)

Assert test is true, panic otherwise

func CheckFatal added in v0.10.0

func CheckFatal(e error)

func CheckWarn added in v0.10.0

func CheckWarn(e error)

func ErrorMessages added in v1.1.0

func ErrorMessages(errors []error) string

func SetLogLevel added in v1.1.0

func SetLogLevel(levelname string)

func SignalHandlerLoop added in v0.11.0

func SignalHandlerLoop(ss ...SignalReceiver)

Types

type SignalReceiver added in v0.11.0

type SignalReceiver interface {
	Stop() error
}

A subsystem/server/... that can be stopped or queried about the status with a signal

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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