lambda

package
v1.2.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 4, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New(cfg iaws.Config) *lambda.Lambda

Types

type API

type API struct {
	Client lambdaiface.LambdaAPI
}

API wraps the Lambda API interface.

func (*API) Invoke

func (a *API) Invoke(ctx aws.Context, function string, payload []byte) (resp *lambda.InvokeOutput, err error)

Invoke is a convenience wrapper for synchronously invoking a Lambda function.

func (*API) InvokeAsync added in v1.2.0

func (a *API) InvokeAsync(ctx aws.Context, function string, payload []byte) (resp *lambda.InvokeOutput, err error)

InvokeAsync is a convenience wrapper for asynchronously invoking a Lambda function.

func (*API) IsEnabled

func (a *API) IsEnabled() bool

IsEnabled returns true if the client is enabled and ready for use.

func (*API) Setup

func (a *API) Setup(cfg iaws.Config)

Setup creates a new Lambda client.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL