Cruda Basis

This commit is contained in:
2024-10-20 19:55:52 +08:00
parent 4adbfe9c19
commit eaa1b04b75
9 changed files with 142 additions and 204 deletions

View File

@@ -39,6 +39,15 @@ func invokeCommand(c *fiber.Ctx) error {
strings.Join(v, "\n"),
)
}
for k, v := range c.Queries() {
meta = append(
meta,
strings.ToLower(fmt.Sprintf("query.%s", strings.ReplaceAll(k, "-", "_"))),
v,
)
}
ctx := metadata.AppendToOutgoingContext(c.Context(), meta...)
ctx, cancel := context.WithTimeout(ctx, time.Second*10)
defer cancel()