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 (c *Controller[D]) HandleLambda(ctx context.Context, proxyReq *events.APIGatewayProxyRequest) (*events.APIGatewayProxyResponse, error)
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 Matcher ¶
type Matcher[K comparable] func(context.Context, *events.APIGatewayProxyRequest) (K, error)
func MakeUrlPathMatcher ¶
type Request ¶
type Request struct { *events.APIGatewayProxyRequest HandlerKey string }
type Response ¶
type Response struct {
*events.APIGatewayProxyResponse
}
Click to show internal directories.
Click to hide internal directories.