win 0cda0e0b96
Some checks failed
CI / test (push) Failing after 8s
CI / golangci-lint (push) Failing after 5s
Security Scan / backend-security (push) Failing after 7s
Security Scan / frontend-security (push) Failing after 6s
feat: add dockerized antigravity ls worker mode
2026-03-30 23:57:25 +08:00

14 lines
522 B
Go

package lspool
import "time"
// Backend is the control-plane abstraction used by the HTTP upstream wrapper.
// It may be backed by a local in-process Pool or by remote LS workers.
type Backend interface {
GetOrCreate(accountID, routingKey string, proxyURL ...string) (*Instance, error)
SetAccountToken(accountID, accessToken, refreshToken string, expiresAt time.Time)
SetAccountModelCredits(accountID string, useAICredits bool, availableCredits, minimumCreditAmountForUsage *int32)
Stats() map[string]any
Close()
}