lambda

package
v0.0.0-...-9823ec8 Latest Latest
Warning

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

Go to latest
Published: Nov 13, 2021 License: Apache-2.0 Imports: 15 Imported by: 0

Documentation

Overview

Package lambda provides lambda functions for the Sonic API Gateway

Index

Constants

View Source
const (
	Namespace = "github.com/starvn/sonic/backend/lambda"
)

Variables

This section is empty.

Functions

func BackendFactory

func BackendFactory(logger log.Logger, bf proxy.BackendFactory) proxy.BackendFactory

func BackendFactoryWithInvoker

func BackendFactoryWithInvoker(logger log.Logger, bf proxy.BackendFactory, invokerFactory func(*Options) Invoker) proxy.BackendFactory

Types

type Invoker

type Invoker interface {
	InvokeWithContext(aws.Context, *lambda.InvokeInput, ...request.Option) (*lambda.InvokeOutput, error)
}

type Options

type Options struct {
	PayloadExtractor  payloadExtractor
	FunctionExtractor functionExtractor
	Config            *aws.Config
}

Jump to

Keyboard shortcuts

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