common

package
v0.0.0-...-50244fc Latest Latest
Warning

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

Go to latest
Published: Jan 18, 2019 License: BSD-3-Clause Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func FatalError

func FatalError(err error) error

func FatalErrorf

func FatalErrorf(err error, format string, a ...interface{}) error

func FatalErrorln

func FatalErrorln(err error, message string) error

func FirstIP

func FirstIP(host string, ipv6 bool) (string, error)

func SetTcpTos

func SetTcpTos(conn *net.TCPConn, dscp int) error

func SetUdpTos

func SetUdpTos(conn *net.UDPConn, dscp int) error

func UdpFamily

func UdpFamily(ip string) (string, error)

* Check whether the IP destination is IPv4 or IPv6 * and set the UDP family to 'udp4' or 'udp6'

func WarnError

func WarnError(err error) error

func WarnErrorf

func WarnErrorf(err error, format string, v ...interface{}) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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