gorillamux

package module
v0.0.0-...-0c590ff Latest Latest
Warning

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

Go to latest
Published: May 8, 2022 License: Apache-2.0 Imports: 6 Imported by: 0

README

API Gateway + gorilla/mux Adapter Godoc

Installation

TODO

Usage & Example

TODO

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type APIGatewayProxyResponse

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

type Adapter

type Adapter struct {
	core.RequestAccessor
	// contains filtered or unexported fields
}

func NewAdapter

func NewAdapter(router *mux.Router) *Adapter

func (*Adapter) Handle

func (adapter *Adapter) Handle(ctx context.Context, event map[string]interface{}) (APIGatewayProxyResponse, error)

func (*Adapter) WithErrorHandler

func (adapter *Adapter) WithErrorHandler(handler *ErrorHandler) *Adapter

func (*Adapter) WithWebsocketPath

func (adapter *Adapter) WithWebsocketPath(path string) *Adapter

type ErrorHandler

type ErrorHandler interface {
	// contains filtered or unexported methods
}

Jump to

Keyboard shortcuts

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