Skip to content
This repository has been archived by the owner on Jan 21, 2018. It is now read-only.

peterbourgon/srvproxy

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

69 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

srvproxy GoDoc Build Status

Proxy for DNS SRV records.

Usage

var rt http.RoundTripper
rt = http.DefaultTransport
rt = proxy.Proxy(proxy.Next(rt))
rt = retry.Retry(retry.Next(rt))

t := &http.Transport{}
t.RegisterProtocol("dnssrv", rt)
http.DefaultClient.Transport = t

resp, err := http.Get("dnssrv://foo.bar.srv.internal.name/normal/path?key=value")
if err != nil {
	log.Fatal(err)
}

io.Copy(os.Stdout, resp.Body)
resp.Body.Close()

For more examples, see examples.go.

About

Proxy for DNS SRV records

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages