Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Log *logrus.Logger
)

Functions

func AllPids

func AllPids(procRoot string) ([]int, error)

func Assert

func Assert(test bool)

    Assert test is true, panic otherwise

    func CheckFatal

    func CheckFatal(e error)

    func CheckWarn

    func CheckWarn(e error)

    func ErrorMessages

    func ErrorMessages(errors []error) string

    func LogLogger

    func LogLogger() *log.Logger

    func LoggingHTTPHandler

    func LoggingHTTPHandler(h http.Handler) http.Handler

    func SetLogLevel

    func SetLogLevel(levelname string)

    Types

    type WaitGroup

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

    func (*WaitGroup) Add

    func (w *WaitGroup) Add() func()

      Increase the count of things waiting and return a closure which calls Done

      func (*WaitGroup) IsDone

      func (w *WaitGroup) IsDone() bool

      Directories

      Path Synopsis