summaryrefslogtreecommitdiff
path: root/template/api/types
diff options
context:
space:
mode:
Diffstat (limited to 'template/api/types')
-rw-r--r--template/api/types/types.go26
1 files changed, 26 insertions, 0 deletions
diff --git a/template/api/types/types.go b/template/api/types/types.go
new file mode 100644
index 0000000..d2a91a3
--- /dev/null
+++ b/template/api/types/types.go
@@ -0,0 +1,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