Documentation
¶
Index ¶
Constants ¶
View Source
const ResponseModeBuffered = "Buffered"
View Source
const 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"`
}
ExtensionDescription ...
type InternalStateDescription ¶
type InternalStateDescription struct {
Runtime *RuntimeDescription `json:"runtime"`
Extensions []ExtensionDescription `json:"extensions"`
FirstFatalError string `json:"firstFatalError"`
}
InternalStateDescription describes internal state of runtime and extensions for debugging purposes
func (*InternalStateDescription) AsJSON ¶
func (s *InternalStateDescription) AsJSON() []byte
type InvokeResponseMode ¶
type InvokeResponseMode string
const InvokeResponseModeBuffered InvokeResponseMode = ResponseModeBuffered
const InvokeResponseModeStreaming InvokeResponseMode = ResponseModeStreaming
type ReleaseResponse ¶
type ReleaseResponse struct {
*InternalStateDescription
ResponseMetrics ResponseMetrics `json:"responseMetrics"`
}
func (*ReleaseResponse) AsJSON ¶
func (s *ReleaseResponse) AsJSON() []byte
type ResetDescription ¶
type ResetDescription struct {
ExtensionsResetMs int64 `json:"extensionsResetMs"`
ResponseMetrics ResponseMetrics `json:"responseMetrics"`
}
ResetDescription describes fields of the response to an INVOKE API request
func (*ResetDescription) AsJSON ¶
func (s *ResetDescription) AsJSON() []byte
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
ResponseMode are top-level constants used in combination with the various types of modes we have for responses, such as invoke's response mode and function's response mode. In the future we might have invoke's request mode or similar, so these help set the ground for consistency.
type RuntimeDescription ¶
type RuntimeDescription struct {
State StateDescription `json:"state"`
}
RuntimeDescription ...
type StateDescription ¶
type StateDescription struct {
Name string `json:"name"`
LastModified int64 `json:"lastModified"`
ResponseTimeNs int64 `json:"responseTimeNs"`
}
StateDescription ...
Click to show internal directories.
Click to hide internal directories.