statejson

package
v0.0.0-...-4fa2157 Latest Latest
Warning

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

Go to latest
Published: Jan 2, 2026 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ResponseModeBuffered  = "Buffered"
	ResponseModeStreaming = "Streaming"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtensionDescription

type ExtensionDescription struct {
	Name      string `json:"name"`
	ID        string
	State     StateDescription `json:"state"`
	ErrorType string           `json:"errorType"`
}

type InternalStateDescription

type InternalStateDescription struct {
	Runtime         *RuntimeDescription    `json:"runtime"`
	Extensions      []ExtensionDescription `json:"extensions"`
	FirstFatalError string                 `json:"firstFatalError"`
}

func (*InternalStateDescription) AsJSON

func (s *InternalStateDescription) AsJSON() []byte

type InvokeResponseMode

type InvokeResponseMode string
const (
	InvokeResponseModeBuffered  InvokeResponseMode = ResponseModeBuffered
	InvokeResponseModeStreaming InvokeResponseMode = ResponseModeStreaming
)

type ResponseMetrics

type ResponseMetrics struct {
	RuntimeResponseLatencyMs float64                   `json:"runtimeResponseLatencyMs"`
	Dimensions               ResponseMetricsDimensions `json:"dimensions"`
}

type ResponseMetricsDimensions

type ResponseMetricsDimensions struct {
	InvokeResponseMode InvokeResponseMode `json:"invokeResponseMode"`
}

type ResponseMode

type ResponseMode string

type RuntimeDescription

type RuntimeDescription struct {
	State StateDescription `json:"state"`
}

type StateDescription

type StateDescription struct {
	Name         string    `json:"name"`
	LastModified time.Time `json:"lastModified"`
	ResponseTime time.Time `json:"responseTime"`
}

Jump to

Keyboard shortcuts

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