summaryrefslogtreecommitdiff
path: root/acme.go
diff options
context:
space:
mode:
authorDavid Anderson <[email protected]>2017-05-14 02:44:20 -0700
committerDavid Anderson <[email protected]>2017-05-14 02:44:20 -0700
commitc58b44c4fc69a3602d751d679c69c07e6bcbe24a (patch)
tree5619dc473c71ed8a03eedb3e576b5d77265d8dce /acme.go
parent4621df99bdd73dbb3995055b9b4f3f062300c892 (diff)
Make golint fail if lint errors are found, and fix said lint.
Diffstat (limited to 'acme.go')
-rw-r--r--acme.go2
1 files changed, 2 insertions, 0 deletions
diff --git a/acme.go b/acme.go
index 5ec4ca8..ab8d59a 100644
--- a/acme.go
+++ b/acme.go
@@ -26,12 +26,14 @@ type acmeCacheEntry struct {
expires time.Time
}
+// ACME locates backends that are attempting ACME SNI-based validation.
type ACME struct {
backends []string
// *.acme.invalid domain to cache entry
cache map[string]acmeCacheEntry
}
+// Match returns the backend for hostname, if one is found.
func (s *ACME) Match(hostname string) string {
c := s.cache[hostname]
if time.Now().Before(c.expires) {