types

package
v0.0.10 Latest Latest
Warning

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

Go to latest
Published: Feb 20, 2024 License: MIT Imports: 0 Imported by: 0

Documentation

Index

Constants

View Source
const RequestContextKey ctxKey = "gateway:requestContext"

RequestContextKey is the key for the api gateway proxy `RequestContext`.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIGatewayResponse

type APIGatewayResponse struct {
	StatusCode        int                 `json:"statusCode"`
	Headers           map[string]string   `json:"headers"`
	MultiValueHeaders map[string][]string `json:"multiValueHeaders"`
	Body              string              `json:"body"`
	IsBase64Encoded   bool                `json:"isBase64Encoded,omitempty"`

	// Just for APIGateway v2
	Cookies []string `json:"cookies"`
}

func (APIGatewayResponse) ToV1Map added in v0.0.2

func (agr APIGatewayResponse) ToV1Map() map[string]any

func (APIGatewayResponse) ToV2Map added in v0.0.2

func (agr APIGatewayResponse) ToV2Map() map[string]any

type Decorator

type Decorator func(handler any) any

Jump to

Keyboard shortcuts

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