utils

package
v0.0.0-...-f0aa076 Latest Latest
Warning

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

Go to latest
Published: Nov 15, 2016 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Argument

func Argument(d map[string]interface{}, name string) (string, bool)

func ArgumentInteger

func ArgumentInteger(d map[string]interface{}, name string) (int, bool)

func ArgumentIntegerMust

func ArgumentIntegerMust(d map[string]interface{}, name string) int

func ArgumentMust

func ArgumentMust(d map[string]interface{}, name string) string

func CPUTotal

func CPUTotal() (time.Duration, error)

func CPUUsage

func CPUUsage(d time.Duration) (float64, error)

func MemTotal

func MemTotal() (int64, error)

func ResolveAddr

func ResolveAddr(network string, locAddr, hostbndAddr string) (string, error)

func SysUsage

func SysUsage() (*syscall.Rusage, error)

Types

This section is empty.

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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