Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
bobgroup-go-utils
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Bob Public Utils
bobgroup-go-utils
Merge requests
!4
Add opensearch client to write API log events
Code
Review changes
Check out branch
Download
Patches
Plain diff
Expand sidebar
Merged
Add opensearch client to write API log events
5-opensearch-for-apilogs
into
main
Overview
0
Commits
3
Pipelines
0
Changes
1
Merged
Pieter van Staden
requested to merge
5-opensearch-for-apilogs
into
main
3 years ago
Overview
0
Commits
3
Pipelines
0
Changes
1
Related to
#5 (closed)
0
0
Merge request reports
Viewing commit
5a132b45
Prev
Next
Show latest version
1 file
+
6
−
1
Inline
Compare changes
Side-by-side
Inline
Show whitespace changes
Show one file at a time
5a132b45
Merged main into branch
· 5a132b45
Jan Semmelink
authored
3 years ago
api/lambda.go
+
6
−
1
View file @ 5a132b45
Edit in single-file editor
Open in Web IDE
Show full file
@@ -260,7 +260,12 @@ func (api Api) Handler(baseCtx context.Context, apiGatewayProxyReq events.APIGat
//handler succeeded, some handler does not have a response data (typically post/put/patch/delete)
err
=
nil
res
.
StatusCode
=
http
.
StatusOK
switch
apiGatewayProxyReq
.
HTTPMethod
{
case
http
.
MethodDelete
:
res
.
StatusCode
=
http
.
StatusNoContent
default
:
res
.
StatusCode
=
http
.
StatusOK
}
if
len
(
results
)
>
1
{
responseStruct
:=
results
[
0
]
.
Interface
()
Loading