util

package
v0.0.0-...-a7a8f6c Latest Latest
Warning

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

Go to latest
Published: Apr 6, 2022 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	GitCommit = ""
	BuildTime = ""
	GoVersion = ""
	Version   = ""
)

set on build time

View Source
var (
	// DefaultTW default TW
	DefaultTW = goetty.NewTimeoutWheel(goetty.WithTickInterval(time.Millisecond * 100))
)

Functions

func MemStats

func MemStats() (*mem.VirtualMemoryStat, error)

MemStats returns the mem usage stats

func PrintVersion

func PrintVersion() bool

PrintVersion print version info

func ReadJSONFromBody

func ReadJSONFromBody(from io.ReadCloser, value interface{}) error

ReadJSONFromBody returns parsed json value

Types

This section is empty.

Jump to

Keyboard shortcuts

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