aboutsummaryrefslogtreecommitdiff
path: root/provider.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-05-22 04:30:29 +0200
committerDimitri Sokolyuk <demon@dim13.org>2016-05-22 04:30:29 +0200
commit793496895e0d153802fbddb4bc766a83672cdaf3 (patch)
tree6e35557260dae90d85493f5254462dd5af9893fe /provider.go
parentae9bcf84e4bb3252fb450effe393f266b7a4c6b5 (diff)
Make go vet happy
Diffstat (limited to 'provider.go')
-rw-r--r--provider.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/provider.go b/provider.go
index 22d193c..cc47314 100644
--- a/provider.go
+++ b/provider.go
@@ -69,7 +69,7 @@ const (
)
// RoundTrip extracts nonces from HTTP reponse
-func (p Provider) RoundTrip(req *http.Request) (*http.Response, error) {
+func (p *Provider) RoundTrip(req *http.Request) (*http.Response, error) {
resp, err := p.Transport.RoundTrip(req)
if err != nil {
return nil, err
@@ -86,7 +86,7 @@ func (p Provider) RoundTrip(req *http.Request) (*http.Response, error) {
}
// Nonce implements jose nonce provider
-func (p Provider) Nonce() (string, error) {
+func (p *Provider) Nonce() (string, error) {
select {
case nonce := <-p.nonces:
return nonce, nil
@@ -112,7 +112,7 @@ func DialProvider(directory string) (*Provider, error) {
return p, parseJson(resp, &p.Directory)
}
-func (p Provider) post(uri string, s *Signer, v interface{}) (*http.Response, error) {
+func (p *Provider) post(uri string, s *Signer, v interface{}) (*http.Response, error) {
msg, err := json.Marshal(v)
if err != nil {
return nil, err