invoker

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

View Source
const (
	ShmSize = 4096
)

Variables

View Source
var (
	ErrNodeMismatched = errors.New("node mismatched")
)

Functions

This section is empty.

Types

type FunctionCloser

type FunctionCloser interface {
	Close()
}

type FunctionInvoker

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

type LocalInvoker

type LocalInvoker struct {
	SetOutputPayload LocalOutputPayloadSetter
	// contains filtered or unexported fields
}

LocalInvoker Invoke local lambda function simulation Use throttle to simulate Lambda network: https://github.com/sitespeedio/throttle throttle --up 800000 --down 800000 --rtt 1 (800kbit/s, 1ms) throttle stop Use container to simulate Lambda resouce limit

func (*LocalInvoker) Close

func (ivk *LocalInvoker) Close()

func (*LocalInvoker) InvokeWithContext

func (ivk *LocalInvoker) InvokeWithContext(ctx context.Context, invokeInput *lambda.InvokeInput, opts ...request.Option) (*lambda.InvokeOutput, error)

type LocalOutputPayloadSetter

type LocalOutputPayloadSetter func(string, []byte)

Jump to

Keyboard shortcuts

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