gin

package
v0.0.0-...-f5948c0 Latest Latest
Warning

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

Go to latest
Published: Aug 23, 2023 License: MIT, BSD-3-Clause Imports: 14 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GenApi

func GenApi(middlewareHandler func(preUrl string, middleware []http.HandlerFunc), handle func(method, path string, in2Type reflect.Type, methodValue, value reflect.Value))

func GrpcServiceToRestfulApi deprecated

func GrpcServiceToRestfulApi(engine *gin.Engine, genApi bool, modName string, tracing bool)

Deprecated:这种方法不推荐使用了,目前就两种定义api的方式,一种grpc-gateway,一种pick自定义 该方法适用于不使用grpc-gateway的情况,只用该方法定义api

func Register

func Register(engine *gin.Engine, genApi bool, modName string, tracing bool)

func RegisterGinAPI

func RegisterGinAPI(genApi bool, modName string, engine *gin.Engine)

Types

This section is empty.

Jump to

Keyboard shortcuts

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