common

package
v0.0.0-...-9f00f78 Latest Latest
Warning

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

Go to latest
Published: Feb 26, 2020 License: Apache-2.0 Imports: 10 Imported by: 0

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

Jump to

Keyboard shortcuts

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