util

package
v0.0.0-...-1399f6c Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2020 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CheckErrUint64

func CheckErrUint64(value string, err error) *wrappers.UInt64Value

CheckErrUint64 function returns nil when an error occurred otherwise returns value in wrappers.UInt64Value format.

func CheckTime

func CheckTime(t *time.Time, err error) (*timestamp.Timestamp, error)

CheckTime function returns nil and error when an error occurred otherwise returns time in timestamp.Timestamp format.

func CheckValueErrInt

func CheckValueErrInt(value int, err error) *wrappers.StringValue

CheckValueErrInt function returns nil when an error occurred otherwise returns value in wrappers.StringValue format.

func CheckValueErrStr

func CheckValueErrStr(value string, err error) *wrappers.StringValue

CheckValueErrStr function returns nil when an error occurred otherwise returns value in wrappers.StringValue format.

func IsPublicIPv4

func IsPublicIPv4(ip net.IP) bool

IsPublicIPv4 function returns true when IP is public IPv4 otherwise returns false.

func SetMatcher

func SetMatcher(r *http.Request, i cassette.Request) bool

SetMatcher sets matcher for VCR used in tests

Types

This section is empty.

Jump to

Keyboard shortcuts

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