lambda_service

package
v0.12.0-rc.19 Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

README

AWS Lambda gateway plugin

The AWS Lambda gateway plugin leverages the AWS golang Lambda SDK to act as a bridge between the AWS lambda service and a Nitric Application.

Currently supported event types are:

  • API Gateway Events
  • SNS Events

Sublime's custom image

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func New

func New() (gateway.GatewayService, error)

func NewWithRuntime

func NewWithRuntime(runtime LambdaRuntimeHandler) (gateway.GatewayService, error)

Types

type Event

type Event struct {
	Requests []triggers.Trigger
}

Event incoming event

func (*Event) UnmarshalJSON

func (event *Event) UnmarshalJSON(data []byte) error

implement the unmarshal interface in order to handle multiple event types

type LambdaGateway

type LambdaGateway struct {
	gateway.UnimplementedGatewayPlugin
	// contains filtered or unexported fields
}

func (*LambdaGateway) Start

func (s *LambdaGateway) Start(pool worker.WorkerPool) error

Start the lambda gateway handler

func (*LambdaGateway) Stop

func (s *LambdaGateway) Stop() error

type LambdaRuntimeHandler

type LambdaRuntimeHandler func(handler interface{})

Jump to

Keyboard shortcuts

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