common

package
v2.6.5+incompatible Latest Latest
Warning

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

Go to latest
Published: Jun 10, 2020 License: Apache-2.0 Imports: 10 Imported by: 192

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Log *logrus.Logger
)

Functions

func AllPids added in v1.7.1

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

func Assert added in v0.11.0

func Assert(test bool)

Assert test is true, panic otherwise

func CheckError

func CheckError(e error)

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 LogLogger added in v1.5.0

func LogLogger() *log.Logger

func LoggingHTTPHandler added in v1.6.0

func LoggingHTTPHandler(h http.Handler) http.Handler

func SetLogLevel added in v1.1.0

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