瀏覽代碼

[acme db interface] wip

max furman 5 年之前
父節點
當前提交
491c188a5e
共有 1 個文件被更改,包括 8 次插入 和 9 次删除
  1. 8 9
      acme/authorization.go

+ 8 - 9
acme/authorization.go

@@ -8,15 +8,14 @@ import (
 
 
 // Authorization representst an ACME Authorization.
 // Authorization representst an ACME Authorization.
 type Authorization struct {
 type Authorization struct {
-	Identifier   Identifier   `json:"identifier"`
-	Status       Status       `json:"status"`
-	Expires      string       `json:"expires"`
-	Challenges   []*Challenge `json:"challenges"`
-	ChallengeIDs string       `json::"-"`
-	Wildcard     bool         `json:"wildcard"`
-	ID           string       `json:"-"`
-	AccountID    string       `json:"-"`
-	Token        string       `json:"-"`
+	Identifier Identifier   `json:"identifier"`
+	Status     Status       `json:"status"`
+	Expires    time.Time    `json:"expires"`
+	Challenges []*Challenge `json:"challenges"`
+	Wildcard   bool         `json:"wildcard"`
+	ID         string       `json:"-"`
+	AccountID  string       `json:"-"`
+	Token      string       `json:"-"`
 }
 }
 
 
 // ToLog enables response logging.
 // ToLog enables response logging.