mongo-driver: go.mongodb.org/mongo-driver/x/mongo/driver/address Index | Files

package address

import "go.mongodb.org/mongo-driver/x/mongo/driver/address"

Index

Package Files

addr.go

type Address Uses

type Address string

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

func (Address) Canonicalize Uses

func (a Address) Canonicalize() Address

Canonicalize creates a canonicalized address.

func (Address) Network Uses

func (a Address) Network() string

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

func (Address) String Uses

func (a Address) String() string

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

Package address imports 2 packages (graph) and is imported by 7 packages. Updated 2019-05-17. Refresh now. Tools for package owners.