package
0.3.0
Repository: https://github.com/ibrt/golang-lambda.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

GetHTTPRequestContext extracts the *HTTPRequestContext from context, panics on error.
GetHTTPResponseContext extracts the *HTTPResponseContext from context, panics on error.
NewErrBadRequest creates a new bad request error.
NewErrForbidden creates a new forbidden error.
NewErrUnauthorized creates a new unauthorized error.
NewHTTPEndpoint initializes a new HTTPEndpoint.
NewHTTPRouter initializes a new HTTPRouter.
NewJSONHTTPErrorMarshaler initializes a new HTTPErrorMarshaler.
NewJSONHTTPRequestUnmarshaler initializes a new HTTPRequestUnmarshaler.
NewJSONHTTPResponseMarshaler initializes a new HTTPResponseMarshaler.
NewNoBodyHTTPRequestUnmarshaler initializes a new HTTPRequestUnmarshaler.
NewNoBodyHTTPResponseMarshaler initializes a new HTTPResponseMarshaler.
NewStaticAPIKeyHTTPRequestAuthorizer initializes a new HTTPRequestAuthorizer.
NoUnmarshalBody describes a JSONHTTPRequestUnmarshalerOption.
NoUnmarshalPathParameters describes a JSONHTTPRequestUnmarshalerOption.
NoUnmarshalQueryStringParameters describes a JSONHTTPRequestUnmarshalerOption.
ParseHTTPRouteKey parses a HTTP route key.
RequireExtractUser describes a JSONHTTPRequestUnmarshalerOption.
WrapErrBadRequest wraps an error as bad request error.
WrapErrForbidden wraps an error as forbidden error.
WrapErrUnauthorized wraps an error as unauthorized error.

# Constants

Known HTTP methods.
Known HTTP methods.
Known error IDs.
Known error IDs.
Known error IDs.
Known HTTP methods.
Known HTTP methods.
Known HTTP methods.
Known HTTP methods.
Post
Known HTTP methods.
Known HTTP methods.

# Structs

HTTPEndpoint describes an endpoint.
HTTPRequestContext describes the context for a HTTP request.
HTTPResponseContext describes the context for a HTTP response.
HTTPRouteKey describes a parsed HTTP route key.
HTTPRouter implements a HTTP router.

# Interfaces

HTTPErrorMarshaler describes a marshaler for a HTTP error.
HTTPRequestAuthorizer describes an unmarshaler for a HTTP request.
HTTPRequestUnmarshaler describes an unmarshaler for a HTTP request.
HTTPResponseMarshaler describes a marshaler for a HTTP response.

# Type aliases

HTTPMethod describes a HTTP method.
HTTPRequestAuthorizerFunc implements the HTTPRequestAuthorizer interface.
JSONHTTPRequestUnmarshalerOption describe an option for jsonHTTPRequestUnmarshaler.