opencode-cursor-agent/internal/svc/service_context.go

24 lines
451 B
Go

package svc
import (
"cursor-api-proxy/internal/config"
domainrepo "cursor-api-proxy/pkg/domain/repository"
"cursor-api-proxy/pkg/repository"
)
type ServiceContext struct {
Config config.Config
// Domain services
AccountPool domainrepo.AccountPool
}
func NewServiceContext(c config.Config) *ServiceContext {
accountPool := repository.NewAccountPool(c.ConfigDirs)
return &ServiceContext{
Config: c,
AccountPool: accountPool,
}
}