ms

package
v0.0.0-...-ed91a18 Latest Latest
Warning

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

Go to latest
Published: May 12, 2022 License: GPL-3.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func HandlerV2

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

func LoadAllRoutes(r *gin.Engine, routes []Route)

func MainV2

func MainV2()

Types

type ApiError

type ApiError struct {
	Code    int32
	Message string
	Source  string
}

type ApiErrorHandler

type ApiErrorHandler func(*gin.Context, interface{})

type HandlerFuncWithToken

type HandlerFuncWithToken func(*gin.Context) interface{}

type Route

type Route struct {
	Path    string
	Method  string
	Handler HandlerFuncWithToken
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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