utils

package
v2.0.0+incompatible Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2019 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenerateNewID

func GenerateNewID() string

GenerateNewID generates new uuid.

func GetErrorMessage

func GetErrorMessage(err interface{}) string

GetErrorMessage returns error message

func GetErrorType

func GetErrorType(err interface{}) string

GetErrorType returns type of the error

func GetPid

func GetPid() string

GetPid returns pid of this process.

func GetThisProcess

func GetThisProcess() *process.Process

GetThisProcess returns process info about this process.

func GetTimestamp

func GetTimestamp() int64

GetTimestamp returns current unix timestamp in msec.

func IsTimeout

func IsTimeout(err interface{}) bool

IsTimeout returns whether or not an err is a timeout error

Types

This section is empty.

Jump to

Keyboard shortcuts

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