lambda

package
v0.0.9 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2021 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ApiGatewayRequester

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

func NewApiGatewayRequester

func NewApiGatewayRequester(matchedPath string, request *events.APIGatewayProxyRequest) *ApiGatewayRequester

func (*ApiGatewayRequester) Accept

func (self *ApiGatewayRequester) Accept() []byte

func (*ApiGatewayRequester) ContentType

func (self *ApiGatewayRequester) ContentType() []byte

func (*ApiGatewayRequester) MatchedPath

func (self *ApiGatewayRequester) MatchedPath() string

func (*ApiGatewayRequester) Method

func (self *ApiGatewayRequester) Method() []byte

func (*ApiGatewayRequester) Path

func (self *ApiGatewayRequester) Path() []byte

func (*ApiGatewayRequester) PathParam

func (self *ApiGatewayRequester) PathParam(param string) (string, bool)

func (*ApiGatewayRequester) PeekHeader

func (self *ApiGatewayRequester) PeekHeader(key string) []byte

func (*ApiGatewayRequester) QueryParam

func (self *ApiGatewayRequester) QueryParam(param string) ([]byte, bool)

func (*ApiGatewayRequester) RequestBody

func (self *ApiGatewayRequester) RequestBody() []byte

func (*ApiGatewayRequester) RequestId

func (self *ApiGatewayRequester) RequestId() string

func (*ApiGatewayRequester) ResponseContentType

func (self *ApiGatewayRequester) ResponseContentType() string

func (*ApiGatewayRequester) ResponseHeaders

func (self *ApiGatewayRequester) ResponseHeaders() map[string]string

func (*ApiGatewayRequester) SetResponseContentType

func (self *ApiGatewayRequester) SetResponseContentType(contentType string)

func (*ApiGatewayRequester) SetResponseHeader

func (self *ApiGatewayRequester) SetResponseHeader(header string, value string)

func (*ApiGatewayRequester) VisitHeaders

func (self *ApiGatewayRequester) VisitHeaders(f func(key []byte, value []byte))

type HandlerAPIGateway

FIXME: Should be able to handle any event, not just API Gateway. HandlerAPIGateway is an API Gateway Proxy Request handler function

type Lambda

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

func New

func New(endpointConfig *endpoint.Config, routeDefinition route.Route) *Lambda

func (*Lambda) Start

func (self *Lambda) Start()

Jump to

Keyboard shortcuts

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