Categorygithub.com/mitchell/lambdarouter
modulepackage
0.0.6-alpha
Repository: https://github.com/mitchell/lambdarouter.git
Documentation: pkg.go.dev

# README

lambdarouter

GoDoc Reference Build Status Test Coverage Maintainability Go Report Card

This package will become a fully featured AWS Lambda function router, able to respond to HTTP, Schedule, Cognito, and SNS events. It will also support middleware interfacing.

So far it includes functionality for API Gateway. Check out the GoDoc Reference to see how to instantiate a router and create endpoints.

# Functions

NewAPIGRouter creates a new router using the given router config.

# Structs

APIGContext is used as the input and output of handler functions.
APIGRouter is the object that handlers build upon and is used in the end to respond.
APIGRouterConfig is used as the input to NewAPIGRouter, request is your incoming apig request and prefix will be stripped of all incoming request paths.

# Type aliases

APIGHandler is the interface a handler function must implement to be used with Get, Post, Put, Patch, and Delete.