summaryrefslogtreecommitdiff
path: root/api/types/types.go
blob: 2698bbc8e6c37b69c5771d9051b1e2cc6154bcea (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
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