summaryrefslogtreecommitdiff
path: root/template/api/types/types.go
blob: d2a91a322db90998d5ec466120760ac43c16541a (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"

	"{{ service_repo }}/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