Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PlainResolver ¶
type PlainResolver struct {
// contains filtered or unexported fields
}
PlainResolver returns the given hostname as it is. It might be useful to resolve services using the default DNS lookup mechanism.
func NewPlainResolver ¶
func NewPlainResolver(address string) PlainResolver
func (PlainResolver) Resolve ¶
func (d PlainResolver) Resolve() (string, bool)
type Resolver ¶
type Resolver interface { // Resolve the current hostname. // Returns the address and `true` in case if the service has been resolved. Resolve() (address string, ok bool) }
Resolver returns a resolved hostname
type ResolverFunc ¶
func (ResolverFunc) Resolve ¶
func (fn ResolverFunc) Resolve() (string, bool)
Click to show internal directories.
Click to hide internal directories.