aboutsummaryrefslogtreecommitdiff
path: root/messages.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-12-13 03:24:20 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-12-13 03:24:20 +0100
commitdc752cef88c5eb259e044957355e07b0f1e93001 (patch)
tree5a7d2fe0f10b376aa8e04a7d9fb2c36dc626e2e5 /messages.go
parentae8ce676587c971198a20b2ee54e7be76adcb922 (diff)
Make constants non-zero based
Diffstat (limited to 'messages.go')
-rw-r--r--messages.go8
1 files changed, 4 insertions, 4 deletions
diff --git a/messages.go b/messages.go
index 444e4d8..859061a 100644
--- a/messages.go
+++ b/messages.go
@@ -81,7 +81,7 @@ type Status int
// Statuses
const (
- StatusUnknown Status = iota
+ StatusUnknown Status = iota + 1
StatusPending
StatusProcessing
StatusValid
@@ -112,7 +112,7 @@ func (s *Status) UnmarshalText(b []byte) error {
type Resource int
const (
- ResNewReg Resource = iota
+ ResNewReg Resource = iota + 1
ResRecoverReg
ResNewAuthz
ResNewCert
@@ -142,7 +142,7 @@ func (r Resource) MarshalText() ([]byte, error) {
type IdentType int
-const IdentDNS IdentType = iota
+const IdentDNS IdentType = iota + 1
var identTypes = map[IdentType]string{
IdentDNS: "dns",
@@ -165,7 +165,7 @@ func (i *IdentType) UnmarshalText(b []byte) error {
type ChallengeType int
const (
- ChallengeHTTP ChallengeType = iota
+ ChallengeHTTP ChallengeType = iota + 1
ChallengeTLS
ChallengePOP
ChallengeDNS