aboutsummaryrefslogtreecommitdiff
path: root/server/store
diff options
context:
space:
mode:
authorNiall Sheridan <nsheridan@gmail.com>2017-04-10 14:34:09 +0100
committerNiall Sheridan <nsheridan@gmail.com>2017-04-10 14:34:09 +0100
commit044fae60a04c06b622554b9f2e9c5f61233355cc (patch)
treee60a5c65a14d91df79e6bdcb33209fde98608c34 /server/store
parent63123b959bc0322c80d41da12ef73abe3dc1ce45 (diff)
Add comment for exported method
Diffstat (limited to 'server/store')
-rw-r--r--server/store/store.go3
1 files changed, 3 insertions, 0 deletions
diff --git a/server/store/store.go b/server/store/store.go
index f14e79f..b200e81 100644
--- a/server/store/store.go
+++ b/server/store/store.go
@@ -44,6 +44,9 @@ type CertRecord struct {
Raw string `json:"-" db:"raw_key"`
}
+// MarshalJSON implements the json.Marshaler interface for the CreatedAt and
+// Expires fields.
+// The resulting string looks like "2017-04-11 10:00:00 +0000"
func (c *CertRecord) MarshalJSON() ([]byte, error) {
type Alias CertRecord
f := "2006-01-02 15:04:05 -0700"