package address
import "go.mongodb.org/mongo-driver/mongo/address"
Package address provides structured representations of network addresses.
Index ¶
Types ¶
type Address ¶
type Address string
Address is a network address. It can either be an IP address or a DNS name.
func (Address) Canonicalize ¶
Canonicalize creates a canonicalized address.
func (Address) Network ¶
Network is the network protocol for this address. In most cases this will be "tcp" or "unix".
func (Address) 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
- v1.17.3 (latest)
- Published
- Feb 25, 2025
- Platform
- linux/amd64
- Imports
- 2 packages
- Last checked
- 13 hours ago –
Tools for package owners.