summary refs log tree commit diff stats
path: root/cache/types.go
diff options
context:
space:
mode:
authorBen Morrison <ben@gbmor.dev>2019-05-13 22:43:45 -0400
committerBen Morrison <ben@gbmor.dev>2019-05-13 22:43:45 -0400
commit9f141b4a31c5c94275d5010cc92e9631237ab0d8 (patch)
tree1e662f56f9859e70bc2571346f43c4f3820287eb /cache/types.go
parentdf79157454391a17bb9276cf44d9141d1a29b8f6 (diff)
downloadgetwtxt-9f141b4a31c5c94275d5010cc92e9631237ab0d8.tar.gz
recording user addition date in time.Time and RFC3339
Diffstat (limited to 'cache/types.go')
-rw-r--r--cache/types.go8
1 files changed, 5 insertions, 3 deletions
diff --git a/cache/types.go b/cache/types.go
index 8f364d5..ed270c3 100644
--- a/cache/types.go
+++ b/cache/types.go
@@ -2,6 +2,7 @@ package cache
 
 import (
 	"sync"
+	"time"
 )
 
 // Indexer allows for other uses of the Index functions
@@ -15,9 +16,10 @@ type UserIndex map[string]*Data
 
 // Data from user's twtxt.txt
 type Data struct {
-	nick   string
-	url    string
-	status []string
+	nick    string
+	date    time.Time
+	apidate []byte
+	status  []string
 }
 
 // Mutex to control access to the User Index