cockroach: Index | Files

package resolver

import ""


Package Files

resolver.go socket.go

type Resolver Uses

type Resolver interface {
    Type() string
    Addr() string
    GetAddress() (net.Addr, error)

Resolver is an interface which provides an abstract factory for net.Addr addresses. Resolvers are not thread safe.

func NewResolver Uses

func NewResolver(address string) (Resolver, error)

NewResolver takes an address and returns a new resolver.

func NewResolverFromAddress Uses

func NewResolverFromAddress(addr net.Addr) (Resolver, error)

NewResolverFromAddress takes a net.Addr and constructs a resolver.

func NewResolverFromUnresolvedAddr Uses

func NewResolverFromUnresolvedAddr(addr util.UnresolvedAddr) (Resolver, error)

NewResolverFromUnresolvedAddr takes a util.UnresolvedAddr and constructs a resolver.

Package resolver imports 5 packages (graph) and is imported by 101 packages. Updated 2019-07-27. Refresh now. Tools for package owners.