lambda

package
v1.4.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const Proto = "lambda://"

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	Invoke(context.Context, *lambda.InvokeInput, ...func(*lambda.Options)) (*lambda.InvokeOutput, error)
}

type RoundTripper

type RoundTripper struct {
	// contains filtered or unexported fields
}

RoundTripper implements http.RoundTripper to intercept an outgoing http request and invoke the underlying service's lambda rather than going through apigateway.

func NewRoundTripper

func NewRoundTripper(ctx context.Context, uri URI, header map[string]string) (*RoundTripper, error)

func (*RoundTripper) Do

func (r *RoundTripper) Do(req *http.Request) (*http.Response, error)

func (*RoundTripper) RoundTrip

func (r *RoundTripper) RoundTrip(req *http.Request) (*http.Response, error)

type URI

type URI struct {
	Function  string
	Qualifier string
}

Jump to

Keyboard shortcuts

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