mux

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Apr 17, 2023 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Overview

Package mux contains the http.Handler mux logic.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ConfigureRoute

func ConfigureRoute[R, C any](route R, config C, validateFn func(r R) error) (R, error)

ConfigureRoute configures a route using the provided configuration and validates it using the provided function.

func New

func New(invoker aws.LambdaService, funcs []config.Function, decorators ...Decorator) (http.Handler, error)

New creates a new http.Handler for the aws.LambdaService using the Server.

Types

type Decorator

type Decorator func(http.Handler, string) http.Handler

Jump to

Keyboard shortcuts

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