lambda

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Mar 5, 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) 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