phoneof/api/types/types.go
Elizabeth Hunt f163a24279
All checks were successful
continuous-integration/drone/push Build is passing
initial commit
2025-01-03 01:47:07 -08:00

29 lines
536 B
Go

package types
import (
"database/sql"
"net/http"
"time"
"git.simponic.xyz/simponic/phoneof/args"
"git.simponic.xyz/simponic/phoneof/database"
)
type RequestContext struct {
DBConn *sql.DB
Args *args.Arguments
Id string
Start time.Time
User *database.Fren
TemplateData *map[string]interface{}
}
type BannerMessages struct {
Messages []string
}
type Continuation func(*RequestContext, *http.Request, http.ResponseWriter) ContinuationChain
type ContinuationChain func(Continuation, Continuation) ContinuationChain