util

package
v0.0.0-...-e917273 Latest Latest
Warning

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

Go to latest
Published: May 5, 2020 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BoolPtr

func BoolPtr(b bool) *bool

BoolPtr returns a pointer for a bool.

func DurPtr

func DurPtr(d time.Duration) *time.Duration

DurPtr returns a pointer for a time.Duration.

func Float32Ptr

func Float32Ptr(f float32) *float32

Float32Ptr returns a pointer for a float32.

func Float64Ptr

func Float64Ptr(f float64) *float64

Float64Ptr returns a pointer for a float64.

func Int16Ptr

func Int16Ptr(i int16) *int16

Int16Ptr returns a pointer for a int16.

func Int32Ptr

func Int32Ptr(i int32) *int32

Int32Ptr returns a pointer for a int32.

func Int64Ptr

func Int64Ptr(i int64) *int64

Int64Ptr returns a pointer for a int64.

func Int8Ptr

func Int8Ptr(i int8) *int8

Int8Ptr returns a pointer for a int8.

func IntPtr

func IntPtr(i int) *int

IntPtr returns a pointer for a int.

func ParseSNMPEndpoint

func ParseSNMPEndpoint(s string) (string, uint16, error)

ParseSNMPEndpoint returns SNMP host and port.

func RegistryGather

func RegistryGather(reg *prometheus.Registry, w io.Writer) error

RegistryGather is used to gather metrics for a registry.

func StrPtr

func StrPtr(s string) *string

StrPtr returns a pointer for a string.

func Uint16Ptr

func Uint16Ptr(i uint16) *uint16

Uint16Ptr returns a pointer for a uint16.

func Uint32Ptr

func Uint32Ptr(i uint32) *uint32

Uint32Ptr returns a pointer for a uint32.

func Uint64Ptr

func Uint64Ptr(i uint64) *uint64

Uint64Ptr returns a pointer for a uint64.

func Uint8Ptr

func Uint8Ptr(i uint8) *uint8

Uint8Ptr returns a pointer for a uint8.

func UintPtr

func UintPtr(i uint) *uint

UintPtr returns a pointer for a uint.

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