Versions in this module Expand all Collapse all v0 v0.0.1 Jun 4, 2022 Changes in this version + type Router struct + Ctx context.Context + R *models.LambdaRequest + RouteMap map[string]map[string]func(ctx context.Context, event models.LambdaRequest) (models.LambdaResponse, error) + W *models.LambdaResponse + func NewLambdaRouter(ctx context.Context, event *models.LambdaRequest) (router Router) + func (r Router) AllowedMethods(methods ...string) *Router + func (r Router) BindJson(d any) error + func (r Router) Execute(name, path string, data any) (string, error) + func (r Router) Handler(method, path string, ...) + func (r Router) Middleware() Router + func (r Router) Run() (models.LambdaResponse, error)