opencode-cursor-agent/pkg/domain/entity/account.go

23 lines
443 B
Go

package entity
// Account represents an account in the pool
type Account struct {
ConfigDir string
ActiveRequests int
LastUsed int64
RateLimitUntil int64
}
// AccountStat represents account statistics
type AccountStat struct {
ConfigDir string
ActiveRequests int
TotalRequests int
TotalSuccess int
TotalErrors int
TotalRateLimits int
TotalLatencyMs int64
IsRateLimited bool
RateLimitUntil int64
}