Codebase list golang-github-go-kit-kit / run/203e4782-15ed-484f-9517-a1c12654c5bc/main sd / dnssrv / lookup.go
run/203e4782-15ed-484f-9517-a1c12654c5bc/main

Tree @run/203e4782-15ed-484f-9517-a1c12654c5bc/main (Download .tar.gz)

lookup.go @run/203e4782-15ed-484f-9517-a1c12654c5bc/mainraw · history · blame

1
2
3
4
5
6
7
package dnssrv

import "net"

// Lookup is a function that resolves a DNS SRV record to multiple addresses.
// It has the same signature as net.LookupSRV.
type Lookup func(service, proto, name string) (cname string, addrs []*net.SRV, err error)