package addr
import "go.mongodb.org/mongo-driver/core/addr"
Index ¶
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 ¶
Canonicalize creates a canonicalized address.
func (Addr) Network ¶
Network is the network protocol for this address. In most cases this will be "tcp" or "unix".
func (Addr) String ¶
String is the canonical version of this address, e.g. localhost:27017, 1.2.3.4:27017, example.com:27017.
Source Files ¶
addr.go
- Version
- v0.0.4
- Published
- May 2, 2018
- Platform
- windows/amd64
- Imports
- 2 packages
- Last checked
- 2 seconds ago –
Tools for package owners.