util

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 28, 2020 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const LimitIgnoreLabels = "status/DNM,status/WIP,S: DNM,S: WIP"

Variables

This section is empty.

Functions

func Error

func Error(err error)

Error print error stack

func Event

func Event(a ...interface{})

Event print event

func Fatal

func Fatal(err error)

Fatal print error info and exit process

func Printf

func Printf(l string, a ...interface{})

Printf wrap standard log library function

func Println

func Println(a ...interface{})

Println wrap standard log library function

func RetryOnError

func RetryOnError(ctx context.Context, retryCount int, fn func() error) error

RetryOnError defines a action with retry when "fn" returns error, we can specify the number and interval of retries code snippet from https://github.com/pingcap/schrodinger

func SendEMail

func SendEMail(mailTo []string, subject string, body string) error

func Sleep

func Sleep(ctx context.Context, sleepTime time.Duration)

Sleep defines special `sleep` with context

Types

This section is empty.

Jump to

Keyboard shortcuts

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