diff options
| author | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2025-01-02 16:57:57 -0800 |
|---|---|---|
| committer | Elizabeth Hunt <elizabeth.hunt@simponic.xyz> | 2025-01-02 16:57:57 -0800 |
| commit | 94dd1ca677c716975d43f323c97ea26f8fd4c962 (patch) | |
| tree | 7eaf4f32af0a180457f935d5f2fdff941018a12f /api/types | |
| download | something-94dd1ca677c716975d43f323c97ea26f8fd4c962.tar.gz something-94dd1ca677c716975d43f323c97ea26f8fd4c962.zip | |
initial commit by simponic-infra
Diffstat (limited to 'api/types')
| -rw-r--r-- | api/types/types.go | 26 |
1 files changed, 26 insertions, 0 deletions
diff --git a/api/types/types.go b/api/types/types.go new file mode 100644 index 0000000..7124b1d --- /dev/null +++ b/api/types/types.go @@ -0,0 +1,26 @@ +package types + +import ( + "database/sql" + "net/http" + "time" + + "git.simponic.xyz/simponic/something/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 |
