Documentation
¶
Index ¶
- Constants
- func ValidatedErrorCauseJSON(errorCauseJSON []byte) ([]byte, error)
- type AgentEvent
- type AgentInvokeEvent
- type AgentShutdownEvent
- type CognitoIdentity
- type CtxKey
- type ErrorCause
- type ErrorResponse
- type ExtensionRegisterResponse
- type ShutdownReason
- type StatusResponse
- type Tracing
- type TracingType
- type XRayTracing
Constants ¶
View Source
const ( LambdaAgentIdentifier string = "Lambda-Extension-Identifier" ErrAgentIdentifierMissing string = "Extension.MissingExtensionIdentifier" ErrAgentIdentifierInvalid string = "Extension.InvalidExtensionIdentifier" )
View Source
const ( XRaySampled = "1" XRayNonSampled = "0" )
View Source
const MaxErrorCauseSizeBytes = 64 << 10
Variables ¶
This section is empty.
Functions ¶
func ValidatedErrorCauseJSON ¶
Types ¶
type AgentEvent ¶
type AgentInvokeEvent ¶
type AgentInvokeEvent struct {
*AgentEvent
RequestID string `json:"requestId"`
InvokedFunctionArn string `json:"invokedFunctionArn"`
Tracing *Tracing `json:"tracing,omitempty"`
}
type AgentShutdownEvent ¶
type AgentShutdownEvent struct {
*AgentEvent
ShutdownReason ShutdownReason `json:"shutdownReason"`
}
type CognitoIdentity ¶
type ErrorCause ¶
type ErrorResponse ¶
type ShutdownReason ¶
type ShutdownReason string
const ( Spindown ShutdownReason = "spindown" Failure ShutdownReason = "failure" )
type StatusResponse ¶
type StatusResponse struct {
Status string `json:"status"`
}
type Tracing ¶
type Tracing struct {
Type TracingType `json:"type"`
XRayTracing
}
func NewXRayTracing ¶
type TracingType ¶
type TracingType string
const (
XRayTracingType TracingType = "X-Amzn-Trace-Id"
)
type XRayTracing ¶
type XRayTracing struct {
Value string `json:"value"`
}
Click to show internal directories.
Click to hide internal directories.