util

package
v1.1.2 Latest Latest
Warning

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

Go to latest
Published: Jan 4, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DerefInt16 added in v1.0.0

func DerefInt16(v *int16) int16

func DerefInt64 added in v1.0.0

func DerefInt64(v *int64) int64

func DerefString added in v1.0.0

func DerefString(s *string) string

func DerefTime added in v1.0.0

func DerefTime(t *time.Time) int64

func DerefUint32 added in v1.0.0

func DerefUint32(v *uint32) uint32

func DirsExist added in v0.5.0

func DirsExist(dirs []string) error

func DurationSec added in v1.0.0

func DurationSec(durationSec interface{}) time.Duration

func FileExists added in v1.0.0

func FileExists(path []byte) bool

func Gunzip

func Gunzip(data []byte) ([]byte, error)

Gunzip decompresses a slice of bytes and returns a slice of decompressed bytes or an error.

func MapInterfaceToString added in v1.0.0

func MapInterfaceToString(input map[string]interface{}) map[string]string

func WriteError added in v1.0.0

func WriteError(l *logrus.Entry, errorCh chan *records.ErrorRecord, err error)

WriteError is a wrapper for logging an error + writing to an error channel. Both the logger and error channel can be nil.

Types

This section is empty.

Jump to

Keyboard shortcuts

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