From 32215b65656e77c2064fd0f0318bbc30ca96ce29 Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Thu, 10 Dec 2015 14:17:23 +0100 Subject: WIP --- messages.go | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) (limited to 'messages.go') diff --git a/messages.go b/messages.go index 28d531b..18fe0fb 100644 --- a/messages.go +++ b/messages.go @@ -9,8 +9,8 @@ import ( const ( // LEV1 Let's Encrytpt V1 LEV1 = `https://acme-v01.api.letsencrypt.org/directory` - // LEStaging Let's Encrypt Staging - LEStaging = `https://acme-staging.api.letsencrypt.org/directory` + // LES Let's Encrypt Staging + LES = `https://acme-staging.api.letsencrypt.org/directory` ) // Directory ... @@ -83,8 +83,10 @@ type Problem struct { Instance string `json:"instance"` } +// Status of request type Status int +// Statuses const ( StatusUnknown Status = iota StatusPending @@ -94,6 +96,7 @@ const ( StatusRevoked ) +// UnmarshalJSON implemets json interface for status decoding func (s *Status) UnmarshalJSON(b []byte) error { var status = map[string]Status{ "unknown": StatusUnknown, -- cgit v1.2.3