Files
darkstorm-server/internal/darkstorm_backend/app.go
T
Caleb Gardner df3fe83c5f Finished with crash requests
Change Log to Count
Added option to get user count
Moved functions to VerifyHeader
Added user delete
2024-06-11 13:42:58 -05:00

17 lines
448 B
Go

package darkstorm
import "net/http"
// An application interface. Both LogTable and CrashTable are optional, if they return nil then requests will be forbidden.
type App interface {
AppID() string
CountTable() CountTable
CrashTable() CrashTable
}
type ExtendedApp interface {
// Extension is called for any calls to /{appID}/
// Alternatively, use Backend.HandleFunc for more customizability
Extension(http.ResponseWriter, *http.Request)
}