Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ErrNoResolver = errors.New("no resolver for custom type")
Functions ¶
func AddResolverFor ¶
AddResolverFor given HostType. Resolver's methods must not panic (we do not handle panics).
Types ¶
type HTTPResolver ¶
type HTTPResolver struct {
// contains filtered or unexported fields
}
func (*HTTPResolver) Do ¶
func (r *HTTPResolver) Do(addr string) error
func (*HTTPResolver) Load ¶
func (r *HTTPResolver) Load(cfg KV) error
type Host ¶
type Host struct {
// contains filtered or unexported fields
}
Host handles an abstract host. It could be raw TCP/UDP, or something like HTTP, for that reason Addr is a string.
func (*Host) SetTimeout ¶
type Pool ¶
type Pool struct {
// contains filtered or unexported fields
}
func (*Pool) GetHostUncached ¶
func (*Pool) GetNextHost ¶
Source Files ¶
Click to show internal directories.
Click to hide internal directories.