package
0.6.0
Repository: https://github.com/akerl/go-lambda.git
Documentation: pkg.go.dev

# Packages

No description provided by the author

# Functions

NewDispatcher is a helper to build a dispatcher from a list of receivers.
NewReceiver generates a receiver from functions.
NewRoute is a helper to convert a regexp and handlefunc into a Route Receiver.
NewRouteWithAuth is a helper to conver a regexp, handler, and auth func into a Route Receiver.
NoAuth is an empty AuthFunc.
NoCheck is an empty CheckFunc.
NoError is an empty ErrorFunc.
Start launches a lambda handler from the Receiver.

# Structs

Dispatcher is a meta-receiver which sends requests to other receivers.
Route is a receiver that works based on a regex path.
SimpleReceiver defines a basic Receiver composed of 4 functions.

# Interfaces

Receiver defines the format of an object that can process events.Requests.

# Type aliases

CheckFunc takes a events.Request and returns if the receiver can handle on it.
ErrorFunc takes a events.Request and error and returns a crafted error events.Response.
HandleFunc takes a events.Request and returns a events.Response and error.