lambdaruntime

package
v0.0.0-...-218d403 Latest Latest
Warning

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

Go to latest
Published: Mar 27, 2023 License: BSD-2-Clause Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ExtensionNextOutput

type ExtensionNextOutput struct {
	EventType          string `json:"eventType"`
	DeadlineMs         int64  `json:"deadlineMs"`
	RequestID          string `json:"requestId"`
	InvokedFunctionArn string `json:"invokedFunctionArn"`
	Tracing            struct {
		Type  string `json:"type"`
		Value string `json:"value"`
	} `json:"tracing"`
}

type ExtensionRegisterOutput

type ExtensionRegisterOutput struct {
	FunctionName    string `json:"functionName"`
	FunctionVersion string `json:"functionVersion"`
	Handler         string `json:"handler"`
	Identifier      string
}

type FunctionNextOutput

type FunctionNextOutput struct {
	RequestId          string
	DeadlineMs         string
	InvokedFunctionArn string
	TraceId            string
	ClientContext      string
	CognitoIdentity    string
	Body               []byte
}

type LambdaRuntime

type LambdaRuntime struct {
	Client *http.Client
}

func New

func New(client *http.Client) *LambdaRuntime

func (*LambdaRuntime) ExtensionNext

func (r *LambdaRuntime) ExtensionNext(ctx context.Context, identifier string) (*ExtensionNextOutput, error)

func (*LambdaRuntime) ExtensionRegister

func (r *LambdaRuntime) ExtensionRegister(ctx context.Context, events ...string) (*ExtensionRegisterOutput, error)

func (*LambdaRuntime) FunctionNext

func (r *LambdaRuntime) FunctionNext(ctx context.Context) (*FunctionNextOutput, error)

func (*LambdaRuntime) FunctionResponse

func (r *LambdaRuntime) FunctionResponse(ctx context.Context, requestId string, body []byte) error

Jump to

Keyboard shortcuts

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