iputil

package
v0.7.1 Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2018 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DefaultEndpoint4Protocol

func DefaultEndpoint4Protocol(proto string) string

DefaultEndpoint4Protocol : To ensure consistency, we generate default addr for listenAddress and advertiseAddress by one method. To avoid unnecessary port allocation work, we allocate fixed port for user defined protocol.

func DefaultPort4Protocol

func DefaultPort4Protocol(proto string) string

DefaultPort4Protocol returns the default port for different protocols

func GetLocalIP

func GetLocalIP() string

GetLocalIP 获得本机IP

func Localhost

func Localhost() string

Localhost is a function which returns localhost IP address

func URIs2Hosts

func URIs2Hosts(uris []string) ([]string, string, error)

URIs2Hosts returns hosts and schema

Types

This section is empty.

Jump to

Keyboard shortcuts

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