aboutsummaryrefslogtreecommitdiff
path: root/provider.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2016-02-03 16:49:50 +0100
committerDimitri Sokolyuk <demon@dim13.org>2016-02-03 16:49:50 +0100
commit27e126b5c6cf6358143dd5b78e8c2f88f2b5682d (patch)
tree1e665537d505640c962ec15c321a329a394e96d2 /provider.go
parent6fcfde44e2bc7612f779161a289c57575b79d7e0 (diff)
Move Problem to errors
Diffstat (limited to 'provider.go')
-rw-r--r--provider.go12
1 files changed, 0 insertions, 12 deletions
diff --git a/provider.go b/provider.go
index 0e1d70f..98a3b25 100644
--- a/provider.go
+++ b/provider.go
@@ -39,14 +39,6 @@ type Directory struct {
RevokeCert string `json:"revoke-cert"`
}
-// Problem description
-type Problem struct {
- Type string `json:"type"`
- Detail string `json:"detail"`
- Instance string `json:"instance"`
- Err error `json:"-"`
-}
-
// Provider ...
type Provider struct {
Directory
@@ -71,10 +63,6 @@ const (
poll = time.Second
)
-func (p Problem) Error() string {
- return p.Detail
-}
-
// RoundTrip extracts nonces from HTTP reponse
func (p Provider) RoundTrip(req *http.Request) (*http.Response, error) {
resp, err := p.Transport.RoundTrip(req)