aboutsummaryrefslogtreecommitdiffhomepage
path: root/backend/gen/api/handler_wrapper_gen.go
diff options
context:
space:
mode:
Diffstat (limited to 'backend/gen/api/handler_wrapper_gen.go')
-rw-r--r--backend/gen/api/handler_wrapper_gen.go14
1 files changed, 7 insertions, 7 deletions
diff --git a/backend/gen/api/handler_wrapper_gen.go b/backend/gen/api/handler_wrapper_gen.go
index 42fc5e8..1cd9770 100644
--- a/backend/gen/api/handler_wrapper_gen.go
+++ b/backend/gen/api/handler_wrapper_gen.go
@@ -111,15 +111,15 @@ import (
"github.com/nsfisis/iosdc-japan-2024-albatross/backend/db"
)
-var _ StrictServerInterface = (*APIHandlerWrapper)(nil)
+var _ StrictServerInterface = (*HandlerWrapper)(nil)
-type APIHandlerWrapper struct {
- impl APIHandler
+type HandlerWrapper struct {
+ impl Handler
}
-func NewHandler(queries *db.Queries, hubs GameHubsInterface) *APIHandlerWrapper {
- return &APIHandlerWrapper{
- impl: APIHandler{
+func NewHandler(queries *db.Queries, hubs GameHubsInterface) *HandlerWrapper {
+ return &HandlerWrapper{
+ impl: Handler{
q: queries,
hubs: hubs,
},
@@ -140,7 +140,7 @@ func parseJWTClaimsFromAuthorizationHeader(authorization string) (*auth.JWTClaim
}
{{ range . }}
- func (h *APIHandlerWrapper) {{ .Name }}(ctx context.Context, request {{ .Name }}RequestObject) ({{ .Name }}ResponseObject, error) {
+ func (h *HandlerWrapper) {{ .Name }}(ctx context.Context, request {{ .Name }}RequestObject) ({{ .Name }}ResponseObject, error) {
{{ if .RequiresLogin -}}
user, err := parseJWTClaimsFromAuthorizationHeader(request.Params.Authorization)
if err != nil {