grim/port-authority
Clone
Summary
Browse
Changes
Graph
Start of moving this to a go http client
draft
default
tip
2020-04-27, Gary Kramlich
dfcf60f69754
Start of moving this to a go http client
package
pa
import
(
"net/http"
"sync"
)
type
Client
struct
{
client
*
http
.
Client
registryLock
sync
.
Mutex
registries
map
[
string
]
registry
}
func
NewClient
()
*
Client
{
return
&
Client
{
client
:
&
http
.
Client
{
Transport
:
NewTransport
(),
},
registries
:
map
[
string
]
registry
{},
}
}