app

package
v0.7.21 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 29, 2026 License: MIT Imports: 35 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

View Source
var EnsureCheckinDisabledAccounts = control.EnsureCheckinDisabledAccounts
View Source
var EnsureCrossProviderModelPool = control.EnsureCrossProviderModelPool
View Source
var EnsureProxyAPIKey = control.EnsureProxyAPIKey
View Source
var EnsureProxyURL = control.EnsureProxyURL
View Source
var EnsureRoutingStrategy = control.EnsureRoutingStrategy
View Source
var EnsureWorkBuddyCheckinTime = control.EnsureWorkBuddyCheckinTime
View Source
var ErrWorkerNotWarm = qoder.ErrWorkerNotWarm
View Source
var GenerateAPIKey = control.GenerateAPIKey

Functions

func EntryModelRegions

func EntryModelRegions(entry map[string]any) []string

func WaitForWorkerAuthManager

func WaitForWorkerAuthManager(ctx context.Context, lookup func() (string, bool), timeout, interval time.Duration) (string, error)

Types

type App

type App struct {
	Cfg       config.Config
	Auth      auth.Verifier
	Executor  executor.ChatExecutor
	Pool      *executor.Pool
	Manager   *accountruntime.Manager
	Control   *appsvc.Services
	Providers *providers.Registry
	Recorder  *applogs.RequestRecorder
	Ring      *applogs.Ring

	SettingsMu             sync.Mutex
	CrossProviderModelPool atomic.Bool
	Gateway                *apigateway.Handler
	Console                *appconsole.Handler
	Update                 *appupdate.Coordinator
	HTTP                   *httpserver.Server
	// contains filtered or unexported fields
}

App owns process resources and assembles gateway/console/server. It is not a service locator for individual modules.

func New

func New(cfg config.Config) *App

func (*App) Close

func (a *App) Close() error

func (*App) FetchWorkerModelsFor

func (a *App) FetchWorkerModelsFor(refresh bool, accountID string) ([]map[string]any, error)

func (*App) FetchWorkerModelsForMode

func (a *App) FetchWorkerModelsForMode(refresh bool, accountID string, mode control.CatalogMode) ([]map[string]any, error)

func (*App) Handler

func (a *App) Handler() http.Handler

func (*App) RebuildHTTP

func (a *App) RebuildHTTP()

func (*App) RequestedAccount

func (a *App) RequestedAccount(r *http.Request) string

type SecretStore

type SecretStore = control.SecretStore

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL