Help us shape the future of Go! Take the 2026 Go Developer Survey

port

package
v1.8.59 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

View Source
const (
	DefaultBreakerCooldown = upstream.DefaultBreakerCooldown
	DefaultBreakerTrip     = upstream.DefaultBreakerTrip
	MatchExact             = upstream.MatchExact
	MatchNone              = upstream.MatchNone
	MatchNormalized        = upstream.MatchNormalized
	PricePriced            = upstream.PricePriced
	PriceUnpriced          = upstream.PriceUnpriced
)

Variables

View Source
var (
	ErrBudgetExhausted      = upstream.ErrBudgetExhausted
	ErrCircuitOpen          = upstream.ErrCircuitOpen
	ErrEmptyChain           = upstream.ErrEmptyChain
	ErrPriceUnknown         = upstream.ErrPriceUnknown
	ClassifyStatus          = upstream.ClassifyStatus
	DefaultPriceTable       = upstream.DefaultPriceTable
	LookupPrice             = upstream.LookupPrice
	LookupPriceStrict       = upstream.LookupPriceStrict
	NewBreakers             = upstream.NewBreakers
	NewBudget               = upstream.NewBudget
	NewChain                = upstream.NewChain
	NewCostTracker          = upstream.NewCostTracker
	NewCostTrackerWithTable = upstream.NewCostTrackerWithTable
	NewPriceTable           = upstream.NewPriceTable
	PriceOf                 = upstream.PriceOf        //nolint:staticcheck // 上游已弃用:改用 PriceTable.Lookup
	PriceOfMatched          = upstream.PriceOfMatched //nolint:staticcheck // 上游已弃用:改用 PriceTable.Lookup
	WithBackoff             = upstream.WithBackoff
	WithBreaker             = upstream.WithBreaker
	WithBudget              = upstream.WithBudget
	WithClassifier          = upstream.WithClassifier
	WithCompleter           = upstream.WithCompleter
	WithRetries             = upstream.WithRetries
	WithTokenCounter        = upstream.WithTokenCounter
	WithTracker             = upstream.WithTracker
)

Functions

This section is empty.

Types

type Breakers

type Breakers = upstream.Breakers

type Budget

type Budget = upstream.Budget

type Chain

type Chain = upstream.Chain

type ChainOption

type ChainOption = upstream.ChainOption

type Classifier

type Classifier = upstream.Classifier

type Completer

type Completer = upstream.Completer

type CostRecord

type CostRecord = upstream.CostRecord

type CostTracker

type CostTracker = upstream.CostTracker

type Entry

type Entry = upstream.Entry

type MatchKind

type MatchKind = upstream.MatchKind

type ModelSummary

type ModelSummary = upstream.ModelSummary

type Price

type Price = upstream.Price

type PriceLookup

type PriceLookup = upstream.PriceLookup

type PriceStatus

type PriceStatus = upstream.PriceStatus

type PriceTable

type PriceTable = upstream.PriceTable

type Request

type Request = upstream.Request

type StatusError

type StatusError = upstream.StatusError

type TokenAccountant

type TokenAccountant = upstream.TokenAccountant

type TokenCounter

type TokenCounter = upstream.TokenCounter

type Usage

type Usage = upstream.Usage

Jump to

Keyboard shortcuts

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