29 lines
580 B
Go
29 lines
580 B
Go
|
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
|
||
|
}
|
||
|
|
||
|
type FormError struct {
|
||
|
Errors []string
|
||
|
}
|
||
|
|
||
|
type Continuation func(*RequestContext, *http.Request, http.ResponseWriter) ContinuationChain
|
||
|
type ContinuationChain func(Continuation, Continuation) ContinuationChain
|