Categorygithub.com/choria-io/go-srvcache
modulepackage
0.0.6
Repository: https://github.com/choria-io/go-srvcache.git
Documentation: pkg.go.dev

# Functions

New creates a new Cache.
NewServer creates a new server instance.
NewServers creates a new server collection.
StringHostsToServers converts an array of servers like host:123 into an array of Servers collection if an empty scheme is given the string will be parsed by a url parser and the embedded scheme will be used, if that does not parse into a valid url then an error will be returned.

# Structs

BasicServer is a representation of a network server host and port, implements Server.
Cache provides a fixed term DNS cache for SRV lookups.

# Interfaces

Server is a Server that can be stored in the collection.
Servers is a collection of server urls.

# Type aliases

Resolver performs dns lookup like net.LookupSRV.