aboutsummaryrefslogtreecommitdiff
path: root/messages.go
diff options
context:
space:
mode:
authorDimitri Sokolyuk <demon@dim13.org>2015-11-28 10:40:45 +0100
committerDimitri Sokolyuk <demon@dim13.org>2015-11-28 10:40:45 +0100
commitab1cab0db527ae0ae4a72b8895233eb99ec3fd34 (patch)
tree86a208814f8fe102e5bb97ec347cf80f67a8dd78 /messages.go
parentf846e741db51ff8e6a2010ebb532f7dbb0edca7c (diff)
Add mandatory field
Diffstat (limited to 'messages.go')
-rw-r--r--messages.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/messages.go b/messages.go
index c469c5b..07c6fe7 100644
--- a/messages.go
+++ b/messages.go
@@ -30,9 +30,10 @@ type Registration struct {
// Authorization Objects
type Authorization struct {
+ Resource string `json:"resource"`
Identifier Identifier `json:"identifier"`
Status string `json:"status,omitemtpy"` // valid
- Expires string `json:"expires,omitempty"` // 2015-03-01
+ Expires string `json:"expires,omitempty"` // 2006-01-02
Challenges []Challenge `json:"challenges"`
Combinations [][]int `json:"combinations,omitemtpy"`
}
@@ -47,6 +48,6 @@ type Identifier struct {
type Challege struct {
Type string `json:"type"` // http-01
Status string `json:"status"` // valid
- Validated string `json:"validated"` // 2014-12-01T12:05Z
+ Validated string `json:"validated"` // 2006-01-02T15:04Z
KeyAuthorization string `json:"keyAuthorization"`
}