addr

package
v0.0.4 Latest Latest
Warning

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

Go to latest
Published: May 2, 2018 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Addr

type Addr string

Addr is a network address. It can either be an IP address or a DNS name.

func (Addr) Canonicalize

func (a Addr) Canonicalize() Addr

Canonicalize creates a canonicalized address.

func (Addr) Network

func (a Addr) Network() string

Network is the network protocol for this address. In most cases this will be "tcp" or "unix".

func (Addr) String

func (a Addr) String() string

String is the canonical version of this address, e.g. localhost:27017, 1.2.3.4:27017, example.com:27017.

Jump to

Keyboard shortcuts

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