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
+24
View File
@@ -14,3 +14,27 @@ type ExtendedApp interface {
// Alternatively, use Backend.HandleFunc for more customizability
Extension(http.ResponseWriter, *http.Request)
}
type simpleApp struct {
countTab CountTable
crashTab CrashTable
appID string
}
func NewSimpleApp(appID string, countTable CountTable, crashTable CrashTable) App {
return &simpleApp{
appID: appID,
countTab: countTable,
crashTab: crashTable,
}
}
func (s *simpleApp) AppID() string {
return s.appID
}
func (s *simpleApp) CountTable() CountTable {
return s.countTab
}
func (s *simpleApp) CrashTable() CrashTable {
return s.crashTab
}