quota

package
v1.0.59 Latest Latest
Warning

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

Go to latest
Published: Jul 20, 2026 License: MIT Imports: 19 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Collector

type Collector struct {
	// contains filtered or unexported fields
}

func NewCollector

func NewCollector(repo *cluster.Repository, options Options) *Collector

func (*Collector) Start

func (c *Collector) Start(ctx context.Context)

type Options

type Options struct {
	Owner                  string
	HomeID                 string
	GlobalProxyURL         string
	GlobalProxyURLProvider func() string
	PollInterval           time.Duration
	ProbeTimeout           time.Duration
	LeaseDuration          time.Duration
	SnapshotFreshness      time.Duration
	ProviderConcurrency    int
	CodexUsageURL          string
	ClaudeUsageURL         string
	ClaudeProfileURL       string
	KimiUsageURL           string
	XAIBillingURL          string
	AntigravityURLs        []string
	Now                    func() time.Time
	HTTPClient             func(*coreauth.Auth, time.Duration) (*http.Client, error)
	ResolveAuth            func(context.Context, *coreauth.Auth) (*coreauth.Auth, error)
}

Jump to

Keyboard shortcuts

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