Documentation
¶
Overview ¶
Package envelopes validates Lambda envelopes and extracts typed payloads.
Index ¶
- func APIGateway[T any](payload parser.Schema[T]) parser.Schema[T]
- func APIGatewayV2[T any](payload parser.Schema[T]) parser.Schema[T]
- func CloudWatch[T any](payload parser.Schema[T]) parser.Schema[[]T]
- func DynamoDBStream[T any](payload parser.Schema[T]) parser.Schema[[]Images[T]]
- func EventBridge[T any](payload parser.Schema[T]) parser.Schema[T]
- func Kafka[T any](payload parser.Schema[T]) parser.Schema[[]T]
- func Kinesis[T any](payload parser.Schema[T]) parser.Schema[[]T]
- func KinesisFirehose[T any](payload parser.Schema[T]) parser.Schema[[]T]
- func LambdaFunctionURL[T any](payload parser.Schema[T]) parser.Schema[T]
- func SNS[T any](payload parser.Schema[T]) parser.Schema[[]T]
- func SNSSQS[T any](payload parser.Schema[T]) parser.Schema[[]T]
- func SQS[T any](payload parser.Schema[T]) parser.Schema[[]T]
- func VpcLattice[T any](payload parser.Schema[T]) parser.Schema[T]
- func VpcLatticeV2[T any](payload parser.Schema[T]) parser.Schema[T]
- type Images
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func APIGateway ¶
APIGateway validates a REST event with the application's body schema.
func APIGatewayV2 ¶
APIGatewayV2 validates an HTTP API v2 event with the application's body schema.
func CloudWatch ¶
CloudWatch decompresses the log envelope and validates each message string.
func DynamoDBStream ¶
DynamoDBStream preserves one old/new image pair per input record.
func EventBridge ¶
EventBridge validates metadata together with the selected detail schema.
func Kafka ¶
Kafka flattens topic-partition records after Base64-to-text decoding. RawMessage input preserves JSON topic order; Go maps use encoding/json's key order.
func KinesisFirehose ¶
KinesisFirehose passes decoded text to the payload schema; JSON parsing is explicit.
func LambdaFunctionURL ¶
LambdaFunctionURL uses the HTTP API v2 shape without implicit Base64 decoding.
func VpcLattice ¶
VpcLattice validates the v1 event's snake_case metadata and body.