gatewayobs

package
v1.45.2 Latest Latest
Warning

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

Go to latest
Published: Apr 7, 2026 License: Apache-2.0 Imports: 1 Imported by: 3 modules, 1 package

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

Overview

Code generated; DO NOT EDIT.

Index

Constants

View Source
const Version_NI039G8 = true

Variables

This section is empty.

Functions

This section is empty.

Types

type BillablePriorityReporter added in v1.45.1

type BillablePriorityReporter interface {
	RegisterFunc(func(ts time.Time, tx BillablePriorityTx) bool)
	Tx(func(tx BillablePriorityTx))
	TxAt(time.Time, func(tx BillablePriorityTx))
	WithProvider(name string) ProviderReporter
	WithDeferredProvider() (ProviderReporter, KeyResolver)
	BillablePriorityTx
}

func NewNoopBillablePriorityReporter added in v1.45.1

func NewNoopBillablePriorityReporter() BillablePriorityReporter

type BillablePriorityTx added in v1.45.1

type BillablePriorityTx interface{}

type GrantedPriorityReporter added in v1.45.1

type GrantedPriorityReporter interface {
	RegisterFunc(func(ts time.Time, tx GrantedPriorityTx) bool)
	Tx(func(tx GrantedPriorityTx))
	TxAt(time.Time, func(tx GrantedPriorityTx))
	WithBillablePriority(priority string) BillablePriorityReporter
	WithDeferredBillablePriority() (BillablePriorityReporter, KeyResolver)
	GrantedPriorityTx
}

func NewNoopGrantedPriorityReporter added in v1.45.1

func NewNoopGrantedPriorityReporter() GrantedPriorityReporter

type GrantedPriorityTx added in v1.45.1

type GrantedPriorityTx interface{}

type KeyResolver

type KeyResolver interface {
	Resolve(string)
	Reset()
}

type ModelBargeInRequestTypes added in v1.44.1

type ModelBargeInRequestTypes string
const (
	ModelBargeInRequestTypesUndefined  ModelBargeInRequestTypes = ""
	ModelBargeInRequestTypesCloud      ModelBargeInRequestTypes = "cloud"
	ModelBargeInRequestTypesSelfHosted ModelBargeInRequestTypes = "self_hosted"
)

type ModelReporter

type ModelReporter interface {
	RegisterFunc(func(ts time.Time, tx ModelTx) bool)
	Tx(func(tx ModelTx))
	TxAt(time.Time, func(tx ModelTx))
	ModelTx
}

func NewNoopModelReporter

func NewNoopModelReporter() ModelReporter

type ModelTx

type ModelTx interface {
	ReportInferencePromptTokens(v uint64)
	ReportInferencePromptCacheTokens(v uint64)
	ReportInferenceCompletionTokens(v uint64)
	ReportInferenceTotalTokens(v uint64)
	ReportInferenceCacheCreateTokens(v uint64)
	ReportInferenceCacheReadTokens(v uint64)
	ReportSttDuration(v uint32)
	ReportTtsChars(v uint32)
	ReportBargeInRequests(v uint64)
	ReportBargeInRequestTypes(v ModelBargeInRequestTypes)
	ReportVoiceCloneRequests(v uint64)
}

type ProjectReporter

type ProjectReporter interface {
	RegisterFunc(func(ts time.Time, tx ProjectTx) bool)
	Tx(func(tx ProjectTx))
	TxAt(time.Time, func(tx ProjectTx))
	WithRequestedPriority(priority string) RequestedPriorityReporter
	WithDeferredRequestedPriority() (RequestedPriorityReporter, KeyResolver)
	ProjectTx
}

func NewNoopProjectReporter

func NewNoopProjectReporter() ProjectReporter

type ProjectTx

type ProjectTx interface{}

type ProviderReporter

type ProviderReporter interface {
	RegisterFunc(func(ts time.Time, tx ProviderTx) bool)
	Tx(func(tx ProviderTx))
	TxAt(time.Time, func(tx ProviderTx))
	WithModel(name string) ModelReporter
	WithDeferredModel() (ModelReporter, KeyResolver)
	ProviderTx
}

func NewNoopProviderReporter

func NewNoopProviderReporter() ProviderReporter

type ProviderTx

type ProviderTx interface{}

type Reporter

type Reporter interface {
	WithProject(id string) ProjectReporter
	WithDeferredProject() (ProjectReporter, KeyResolver)
}

func NewNoopReporter

func NewNoopReporter() Reporter

type RequestedPriorityReporter added in v1.45.1

type RequestedPriorityReporter interface {
	RegisterFunc(func(ts time.Time, tx RequestedPriorityTx) bool)
	Tx(func(tx RequestedPriorityTx))
	TxAt(time.Time, func(tx RequestedPriorityTx))
	WithGrantedPriority(priority string) GrantedPriorityReporter
	WithDeferredGrantedPriority() (GrantedPriorityReporter, KeyResolver)
	RequestedPriorityTx
}

func NewNoopRequestedPriorityReporter added in v1.45.1

func NewNoopRequestedPriorityReporter() RequestedPriorityReporter

type RequestedPriorityTx added in v1.45.1

type RequestedPriorityTx interface{}

type Rollup

type Rollup string
const (
	RollupUndefined Rollup = ""
	RollupModel     Rollup = "model"
)

Jump to

Keyboard shortcuts

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