SimpleApp

Started work on the actual stuff
Gave up on Valkey (for right now)
This commit is contained in:
Caleb Gardner
2024-06-16 06:46:44 -05:00
parent 7f9de3f025
commit 7b15aab7ec
8 changed files with 77 additions and 27 deletions
+4
View File
@@ -76,6 +76,10 @@ func (b *Backend) cleanupLoop() {
}
}
func (b *Backend) ServeHTTP(w http.ResponseWriter, r *http.Request) {
b.m.ServeHTTP(w, r)
}
func getDate(t time.Time) int {
return (t.Year() * 10000) + (int(t.Month()) * 100) + t.Day()
}