Documentation
¶
Overview ¶
Package stdlambda implements re-usable logic for AWS Lambda that is not tied to fx.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HandlerFunc ¶ added in v0.0.47
HandlerFunc implements lambda.Handler, similar to http.HandlerFunc.
type Invoker ¶ added in v0.0.46
type Invoker[I, O any] struct { // contains filtered or unexported fields }
Invoker invokes a lambda using "I" as the input type and "O" as the output type.
func NewInvoker ¶ added in v0.0.46
NewInvoker inits the invoker.
type JSONHandlerFunc ¶ added in v0.0.49
JSONHandlerFunc implements lambda.Handler but decodes and encodes as JSON.
type Lambda ¶ added in v0.0.46
type Lambda interface {
Invoke(ctx context.Context, params *lambda.InvokeInput, optFns ...func(*lambda.Options)) (*lambda.InvokeOutput, error)
}
Lambda is implemented by the official SDK's client.
type ProtoInvoker ¶ added in v0.0.46
type ProtoInvoker[I, O any, IP interface { *I proto.Message }, OP interface { *O proto.Message }] struct { // contains filtered or unexported fields }
ProtoInvoker invokes lambdas that use protobuf encoding.
func NewProtoInvoker ¶ added in v0.0.46
func NewProtoInvoker[I, O any, IP interface { *I proto.Message }, OP interface { *O proto.Message }](lambdaClient Lambda, functionName string) *ProtoInvoker[I, O, IP, OP]
NewProtoInvoker inits the invoker.
Click to show internal directories.
Click to hide internal directories.