lambda

package
v0.2.0 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() *lambda.Lambda

New creates a new session connection to Lambda

Types

type API

type API struct {
	Client lambdaiface.LambdaAPI
}

API wraps a lambda client 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 around the AWS Lambda Invoke call with triggers a lambda

func (*API) IsEnabled

func (a *API) IsEnabled() bool

IsEnabled returns the boolean on whether the client is enabled

func (*API) Setup

func (a *API) Setup()

Setup creates and sets a lambda client

Jump to

Keyboard shortcuts

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