2024-04-03 19:53:50 -04:00
|
|
|
package types
|
|
|
|
|
|
|
|
import (
|
|
|
|
"database/sql"
|
|
|
|
"net/http"
|
|
|
|
"time"
|
|
|
|
|
|
|
|
"git.hatecomputers.club/hatecomputers/hatecomputers.club/args"
|
|
|
|
"git.hatecomputers.club/hatecomputers/hatecomputers.club/database"
|
|
|
|
)
|
|
|
|
|
|
|
|
type RequestContext struct {
|
|
|
|
DBConn *sql.DB
|
|
|
|
Args *args.Arguments
|
|
|
|
|
|
|
|
Id string
|
|
|
|
Start time.Time
|
|
|
|
|
|
|
|
TemplateData *map[string]interface{}
|
|
|
|
User *database.User
|
|
|
|
}
|
|
|
|
|
2024-04-09 18:29:52 -04:00
|
|
|
type BannerMessages struct {
|
|
|
|
Messages []string
|
2024-04-03 19:53:50 -04:00
|
|
|
}
|
|
|
|
|
|
|
|
type Continuation func(*RequestContext, *http.Request, http.ResponseWriter) ContinuationChain
|
|
|
|
type ContinuationChain func(Continuation, Continuation) ContinuationChain
|