Documentation ¶
Index ¶
- func HandlerV2(ctx context.Context, request events.APIGatewayV2HTTPRequest) (events.APIGatewayV2HTTPResponse, error)
- func InitV2(routes []Route, apiErrorHandlerParam ApiErrorHandler, gormDbParam *gorm.DB)
- func IsAwsLambdaEnv() bool
- func LoadAllRoutes(r *gin.Engine, routes []Route)
- func MainV2()
- type ApiError
- type ApiErrorHandler
- type HandlerFuncWithToken
- type Route
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func HandlerV2 ¶
func HandlerV2(ctx context.Context, request events.APIGatewayV2HTTPRequest) (events.APIGatewayV2HTTPResponse, error)
Handler is our lambda handler invoked by the `lambda.Start` function call
func InitV2 ¶
func InitV2(routes []Route, apiErrorHandlerParam ApiErrorHandler, gormDbParam *gorm.DB)
func IsAwsLambdaEnv ¶
func IsAwsLambdaEnv() bool
func LoadAllRoutes ¶
Types ¶
type ApiErrorHandler ¶
type HandlerFuncWithToken ¶
type Route ¶
type Route struct { Path string Method string Handler HandlerFuncWithToken }
Click to show internal directories.
Click to hide internal directories.