aboutsummaryrefslogtreecommitdiff
path: root/messages.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-11-30 13:46:09 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-11-30 13:46:09 +0100
commitc163873c556049b1de9bfb80b2edfee58e3f7dcc (patch)
treece1090141b1bbcef3d7b7ea7baa4c2e35292ddbe /messages.go
parent649a0daf6d5f2a88835a1022ce233bd709e95c98 (diff)
Update comments
Diffstat (limited to 'messages.go')
-rw-r--r--messages.go12
1 files changed, 6 insertions, 6 deletions
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"`
}