Lines Matching defs:Resolver
133 type Resolver struct { struct
137 PreferGo bool
147 StrictErrors bool
160 Dial func(ctx context.Context, network, address string) (Conn, error)
165 lookupGroup singleflight.Group
171 func (r *Resolver) preferGo() bool { return r != nil && r.PreferGo }
172 func (r *Resolver) strictErrors() bool { return r != nil && r.StrictErrors }
174 func (r *Resolver) getLookupGroup() *singleflight.Group {
192 func (r *Resolver) LookupHost(ctx context.Context, host string) (addrs []string, err error) {
219 func (r *Resolver) LookupIPAddr(ctx context.Context, host string) ([]IPAddr, error) {
227 func (r *Resolver) LookupIP(ctx context.Context, network, host string) ([]IP, error) {
257 func (r *Resolver) LookupNetIP(ctx context.Context, network, host string) ([]netip.Addr, error) {
304 func (r *Resolver) lookupIPAddr(ctx context.Context, network, host string) ([]IPAddr, error) {
414 func (r *Resolver) LookupPort(ctx context.Context, network, service string) (port int, err error) {
468 func (r *Resolver) LookupCNAME(ctx context.Context, host string) (string, error) {
511 …(r *Resolver) LookupSRV(ctx context.Context, service, proto, name string) (string, []*SRV, error) {
554 func (r *Resolver) LookupMX(ctx context.Context, name string) ([]*MX, error) {
594 func (r *Resolver) LookupNS(ctx context.Context, name string) ([]*NS, error) {
624 func (r *Resolver) LookupTXT(ctx context.Context, name string) ([]string, error) {
650 func (r *Resolver) LookupAddr(ctx context.Context, addr string) ([]string, error) {
675 func (r *Resolver) dial(ctx context.Context, network, server string) (Conn, error) {
704 …okupSRV(ctx context.Context, service, proto, name string) (target string, srvs []*SRV, err error) {
755 func (r *Resolver) goLookupMX(ctx context.Context, name string) ([]*MX, error) {
799 func (r *Resolver) goLookupNS(ctx context.Context, name string) ([]*NS, error) {
841 func (r *Resolver) goLookupTXT(ctx context.Context, name string) ([]string, error) {