import "github.com/docker/distribution/registry/listener"
listener.go
func NewListener(net, laddr string) (net.Listener, error)
NewListener announces on laddr and net. Accepted values of the net are 'unix' and 'tcp'