From c163873c556049b1de9bfb80b2edfee58e3f7dcc Mon Sep 17 00:00:00 2001 From: Dimitri Sokolyuk Date: Mon, 30 Nov 2015 13:46:09 +0100 Subject: Update comments --- messages.go | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'messages.go') diff --git a/messages.go b/messages.go index 26e4f2b..cb10a79 100644 --- a/messages.go +++ b/messages.go @@ -18,7 +18,7 @@ type Directory struct { // Registration Objects type Registration struct { - Resource string `json:"resource"` + Resource string `json:"resource"` // new-reg Contact []string `json:"contact,omitempty"` Agreement string `json:"agreement,omitempty"` Authorizations string `json:"authorizations,omitempty"` @@ -30,11 +30,11 @@ type RegistrationResp struct { ID int `json:"id"` Key Key `json:"key"` Contact []string `json:"contact"` - InitialIP string `json:"initalIp"` + InitialIP string `json:"initalIp"` // not in draft CreatedAt string `json:"createdAt"` // 2006-01-02T15:04:05.999999999Z } -// Key ... +// Key contains public part of jose.JsonWebKey type Key struct { Kty string `json:"kty"` // RSA, EC E string `json:"e"` @@ -43,14 +43,14 @@ type Key struct { // Authorization request type Authorization struct { - Resource string `json:"resource"` + Resource string `json:"resource"` // new-authz Identifier Identifier `json:"identifier"` } // AuthorizationResp Objects type AuthorizationResp struct { Identifier Identifier `json:"identifier"` - Status string `json:"status,omitemtpy"` // valid + Status string `json:"status,omitemtpy"` // e.g. valid Expires string `json:"expires,omitempty"` // 2006-01-02 Challenges []Challenge `json:"challenges"` Combinations [][]int `json:"combinations,omitemtpy"` @@ -65,7 +65,7 @@ type Identifier struct { // Challege ... type Challege struct { Type string `json:"type"` // http-01 - Status string `json:"status"` // valid + Status string `json:"status"` // e.g. valid Validated string `json:"validated"` // 2006-01-02T15:04Z KeyAuthorization string `json:"keyAuthorization"` } -- cgit v1.2.3