status

package
v0.4.2 Latest Latest
Warning

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

Go to latest
Published: Jun 25, 2026 License: AGPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ContextSnapshot

type ContextSnapshot struct {
	InputTokens int `json:"input_tokens"`
	MaxTokens   int `json:"max_tokens"`
	Percent     int `json:"pct"`
}

type ModelsSnapshot

type ModelsSnapshot struct {
	SkippedFallbacks []router.SkippedModel `json:"skipped_fallbacks,omitempty"`
}

type ProxySnapshot

type ProxySnapshot struct {
	Version string `json:"version"`
	PID     int    `json:"pid"`
	Binary  string `json:"binary"`
}

type RequestSnapshot

type RequestSnapshot struct {
	RequestID string `json:"request_id"`
	Streaming bool   `json:"streaming"`
}

type RoutingSnapshot

type RoutingSnapshot struct {
	Scenario string `json:"scenario"`
	ModelID  string `json:"model_id"`
}

type Snapshot

type Snapshot struct {
	SchemaVersion int             `json:"schema_version"`
	UpdatedAt     string          `json:"updated_at"`
	AgeMS         int64           `json:"age_ms"`
	Source        string          `json:"source"`
	Stale         bool            `json:"stale"`
	Proxy         ProxySnapshot   `json:"proxy"`
	Request       RequestSnapshot `json:"request"`
	Routing       RoutingSnapshot `json:"routing"`
	Context       ContextSnapshot `json:"context"`
	Models        ModelsSnapshot  `json:"models"`
}

type Store

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

func NewStore

func NewStore(ttl time.Duration) *Store

func (*Store) Snapshot

func (s *Store) Snapshot() Snapshot

func (*Store) Update

func (s *Store) Update(seq uint64, snap Snapshot)

Jump to

Keyboard shortcuts

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