SimpleApp
Started work on the actual stuff Gave up on Valkey (for right now)
This commit is contained in:
@@ -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
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user