From 2492014051e5cd4c37287a09639d18f85e1349dc Mon Sep 17 00:00:00 2001 From: Ben Morrison Date: Tue, 14 May 2019 03:08:07 -0400 Subject: moved query functions to own file, made SortByTime query-agnostic --- registry/types.go | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'registry/types.go') diff --git a/registry/types.go b/registry/types.go index d3e421a..43b323f 100644 --- a/registry/types.go +++ b/registry/types.go @@ -19,16 +19,16 @@ type Data struct { nick string date time.Time apidate []byte - status StatusMap + status TimeMap } -// StatusMap holds the statuses posted by a given user. A standard -// time.Time value is used as the key, with the status as a string. -type StatusMap map[time.Time]string +// TimeMap holds extracted and processed user data as a +// string. A standard time.Time value is used as the key. +type TimeMap map[time.Time]string // StatusMapSlice is a slice of StatusMaps. Useful for sorting the // output of queries. -type StatusMapSlice []StatusMap +type TimeMapSlice []TimeMap // Mutex to control access to the User Index. var imutex = sync.RWMutex{} -- cgit 1.4.1-2-gfad0