Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitializeLambdaClient ¶
func InvokeLambdaCmd ¶
func InvokeLambdaCmd(ctx context.Context, config *LambdaInvokerConfig)
Types ¶
type APIGatewayProxyRequest ¶
type APIGatewayProxyRequest struct { Body string `json:"body"` Headers map[string]string `json:"headers"` }
func CreateAPIGatewayProxyRequest ¶
func CreateAPIGatewayProxyRequest(requestPayload *RequestPayload) (*APIGatewayProxyRequest, error)
type LambdaClient ¶
type LambdaClient interface {
Invoke(ctx context.Context, params *lambda.InvokeInput, optFns ...func(*lambda.Options)) (*lambda.InvokeOutput, error)
}
type LambdaInvokerConfig ¶
type LambdaInvokerService ¶
type LambdaInvokerService struct { LambdaClient LambdaClient LambdaName string }
func (*LambdaInvokerService) InvokeLambda ¶
func (lambdaInvokerService *LambdaInvokerService) InvokeLambda(ctx context.Context, payload []byte) (*lambda.InvokeOutput, error)
type RequestPayload ¶
type RequestPayload struct { Body map[string]string `json:"body"` Headers map[string]string `json:"headers"` }
func GetPayloadFromConfig ¶
func GetPayloadFromConfig(config *LambdaInvokerConfig) (*RequestPayload, error)
Click to show internal directories.
Click to hide internal directories.