aboutsummaryrefslogtreecommitdiff
path: root/solve_webroot.go
diff options
context:
space:
mode:
Diffstat (limited to 'solve_webroot.go')
-rw-r--r--solve_webroot.go10
1 files changed, 5 insertions, 5 deletions
diff --git a/solve_webroot.go b/solve_webroot.go
index ab767b8..3372c43 100644
--- a/solve_webroot.go
+++ b/solve_webroot.go
@@ -6,16 +6,16 @@ import (
"path"
)
-type webRootSolver struct {
+type webrootSolver struct {
webroot string
file string
}
-func NewWebRootSolver(webroot string) Solver {
- return &webRootSolver{webroot: webroot}
+func NewWebrootSolver(webroot string) Solver {
+ return &webrootSolver{webroot: webroot}
}
-func (s *webRootSolver) Solve(token, keyAuth string) error {
+func (s *webrootSolver) Solve(token, keyAuth string) error {
s.file = path.Join(s.webroot, WellKnown, token)
fd, err := CreatePubFile(s.file)
if err != nil {
@@ -26,6 +26,6 @@ func (s *webRootSolver) Solve(token, keyAuth string) error {
return err
}
-func (s *webRootSolver) Solved() error {
+func (s *webrootSolver) Solved() error {
return os.Remove(s.file)
}