Codebase list golang-github-go-kit-kit / 2159fb24-df80-4a66-a950-52f06cc10bdb/main sd / dnssrv / lookup.go
2159fb24-df80-4a66-a950-52f06cc10bdb/main

Tree @2159fb24-df80-4a66-a950-52f06cc10bdb/main (Download .tar.gz)

lookup.go @2159fb24-df80-4a66-a950-52f06cc10bdb/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)