فهرست منبع

Satisfy golangci-lint

Herman Slatman 5 سال پیش
والد
کامیت
29f9730485
2فایلهای تغییر یافته به همراه8 افزوده شده و 3 حذف شده
  1. 5 2
      acme/challenge.go
  2. 3 1
      acme/order.go

+ 5 - 2
acme/challenge.go

@@ -26,8 +26,11 @@ import (
 type ChallengeType string
 
 const (
-	HTTP01    ChallengeType = "http-01"
-	DNS01     ChallengeType = "dns-01"
+	// HTTP01 is the http-01 ACME challenge type
+	HTTP01 ChallengeType = "http-01"
+	// DNS01 is the dns-01 ACME challenge type
+	DNS01 ChallengeType = "dns-01"
+	// TLSALPN01 is the tls-alpn-01 ACME challenge type
 	TLSALPN01 ChallengeType = "tls-alpn-01"
 )
 

+ 3 - 1
acme/order.go

@@ -17,7 +17,9 @@ import (
 type IdentifierType string
 
 const (
-	IP  IdentifierType = "ip"
+	// IP is the ACME ip identifier type
+	IP IdentifierType = "ip"
+	// DNS is the ACME dns identifier type
 	DNS IdentifierType = "dns"
 )