Documentation
¶
Index ¶
Constants ¶
View Source
const ( MethodGet = "GET" MethodPost = "POST" MethodPut = "PUT" MethodDelete = "DELETE" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Handler ¶
type Handler interface {
HandleRequest(ctx context.Context, request events.LambdaFunctionURLRequest) (events.LambdaFunctionURLResponse, error)
}
Handler defines the interface for custom handlers
type Router ¶
type Router struct {
// contains filtered or unexported fields
}
Router is the main structure for routing
func (*Router) HandleRequest ¶
func (r *Router) HandleRequest(ctx context.Context, request events.LambdaFunctionURLRequest) (events.LambdaFunctionURLResponse, error)
HandleRequest routes the incoming request to the appropriate handler
Click to show internal directories.
Click to hide internal directories.