common

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 7, 2015 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 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