console: use per-function invoke timeout

This commit is contained in:
Naeel
2026-04-27 10:33:40 +03:00
parent e600d6e1e8
commit 01f546e0e8
3 changed files with 68 additions and 13 deletions
+3 -1
View File
@@ -13,12 +13,14 @@ type CreateFunctionRequest struct {
Entrypoint string `json:"entrypoint"`
Route string `json:"route"`
Methods []string `json:"methods"`
Timeout int64 `json:"timeout"`
TTL string `json:"ttl"` // e.g. "24h", "7d" — пустое = функция не протухает
}
// UpdateCodeRequest — тело PUT /console/api/functions/:name/code.
type UpdateCodeRequest struct {
Code string `json:"code"`
Code string `json:"code"`
Timeout int64 `json:"timeout"`
}
// LangEnvDef описывает Docker-образы для конкретного языка.