summaryrefslogtreecommitdiff
path: root/api/types/types.go
blob: da581c987b500a53a335944c64cec3267b581a89 (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
package types

import (
	"database/sql"
	"net/http"
	"time"

	"git.simponic.xyz/simponic/phoneassistant/args"
)

type RequestContext struct {
	DBConn *sql.DB
	Args   *args.Arguments

	Id    string
	Start time.Time

	TemplateData *map[string]interface{}
}

type BannerMessages struct {
	Messages []string
}

type Continuation func(*RequestContext, *http.Request, http.ResponseWriter) ContinuationChain
type ContinuationChain func(Continuation, Continuation) ContinuationChain