10 questions from the last 7 days
1
vote
1
answer
72
views
Accessing postgres db using pgxpool in a goroutine
I have created a function to return the db connection of a postgresdb using pgxpool. But I don't want to create multiple pools since i will be calling this function each time to execute a query.
Since ...
-2
votes
0
answers
73
views
How can http.Server be made to hold open a connection? [closed]
I'd like to add a unit test for Go's http.Server.Shutdown() timing out, but there are no connections held open when the shutdown signal is sent, so it never gets to checking for timeouts, even though ...
0
votes
0
answers
57
views
How do I use the Terratest shell module? [closed]
I’ve been trying to use the Terratest shell module to execute bash commands, but I haven’t had much success. Documentation appears to be limited, and most references I found were via AI tools. Below ...
-2
votes
0
answers
77
views
User providable Stateful plugins In Go [closed]
I am working on smtp library to act as mux for smpt. User define config with multiple smtp downstream servers and the service. This service will act as proxy between down streams and upstream. Purpose ...
1
vote
0
answers
44
views
Why is go build trying to download local code, but only in gitlab
We have a project with 3 git repositories, let's call them backend, ui and library, hosted at gitlab.com/mycompany. These build quite happily.
I am trying to move the three repos into one, so we now ...
2
votes
0
answers
32
views
inlay hints don't work for golang in neovim?
i have hints working for lua, but not for go.
i've already tried a bunch of stuff like several go configs, though it seems like it is a server problem, because Settings: {} is what i get in ...
1
vote
1
answer
33
views
Go terraform unrecognized import path from GCP Artifact Registry
I get an error when trying to download private go dependencies from artifact registry via terraform:
│ Error: Error waiting to create function: Error waiting for Creating function: Error code 3, ...
3
votes
0
answers
30
views
Why does Milvus Go RowBasedInsertOption conflict with Function-generated sparse vector fields?
I’m using Milvus 2.5 with the Go SDK (v2.5.1) and ran into an issue when inserting data into a collection that uses a Function-defined field together with RowBasedInsertOption.
In my collection schema,...
Best practices
1
vote
0
replies
29
views
Where should I create the application session when using an internal SSO (Gin + OAuth2)?
I’m integrating an internal SSO (OAuth2) into a web application using Gin (Go), and I’m a bit unsure about the right place to create the application session.
The SSO is the only authentication ...
1
vote
0
answers
31
views
Trouble decrypting CiphertextForRecipient after KMS GenerateDataKey
I'm building a route for my go (gin) server that generates a Data Encryption Key (DEK), following the principle of zero-trust (the backend never sees the plaintext).
Right now, the client generates a ...