From 7f7e96097be3f3c6230f9c8ae07063eed84ba31e Mon Sep 17 00:00:00 2001 From: xenolf Date: Thu, 11 Jun 2015 15:31:09 +0200 Subject: [PATCH] Rename challengeHandler to solver --- acme/client.go | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/acme/client.go b/acme/client.go index af151500..4ca0ab5b 100644 --- a/acme/client.go +++ b/acme/client.go @@ -35,7 +35,7 @@ type User interface { GetPrivateKey() *rsa.PrivateKey } -type challengeHandler interface { +type solver interface { CanSolve() bool Solve() } @@ -44,7 +44,7 @@ type challengeHandler interface { type Client struct { regURL string user User - Solvers map[string]challengeHandler + Solvers map[string]solver } // NewClient creates a new client for the set user. @@ -54,7 +54,7 @@ func NewClient(caURL string, usr User) *Client { } // REVIEW: best possibility? - solvers := make(map[string]challengeHandler) + solvers := make(map[string]solver) solvers["simpleHttp"] = &simpleHTTPChallenge{} solvers["dvsni"] = &dvsniChallenge{}