lambda

package
v0.0.0-...-9dd234d Latest Latest
Warning

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

Go to latest
Published: Aug 9, 2023 License: MIT Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Controller

type Controller[D ControllerDependency] struct {
	*app.Injector[D]

	Matcher Matcher[string]
	// contains filtered or unexported fields
}

func NewController

func NewController[D ControllerDependency]() *Controller[D]

func (*Controller[D]) HandleLambda

func (*Controller[D]) RegisterGRPCService

func (c *Controller[D]) RegisterGRPCService(desc grpc.ServiceDesc, svc interface{})

func (*Controller[D]) RegisterHandler

func (c *Controller[D]) RegisterHandler(key string, handler Handler)

type ControllerDependency

type ControllerDependency interface {
}

type Handler

type Handler func(context.Context, *Request, *Response) error

type Matcher

func MakeUrlPathMatcher

func MakeUrlPathMatcher(basePath string) Matcher[string]

type Request

type Request struct {
	*events.APIGatewayProxyRequest
	HandlerKey string
}

func (*Request) UnmarshalProtobuf

func (r *Request) UnmarshalProtobuf(m proto.Message) error

type Response

type Response struct {
	*events.APIGatewayProxyResponse
}

func (*Response) MarshalProtobuf

func (r *Response) MarshalProtobuf(m proto.Message) error

Jump to

Keyboard shortcuts

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