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)
Click to show internal directories.
Click to hide internal directories.