routers

package
v1.1.0 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2023 License: MulanPSL-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Health

func Health(engine *gin.Engine)

k8s 添加健康探针,返回200

func Include

func Include(opts ...Option)

注册app的路由配置

func Init

func Init(opts ...Option) *gin.Engine

初始化

func RegisterGetHandler

func RegisterGetHandler(routerGroup *gin.RouterGroup, path string, handler gin.HandlerFunc)

func RegisterPostHandler

func RegisterPostHandler(routerGroup *gin.RouterGroup, path string, handler gin.HandlerFunc)

Types

type Option

type Option func(*gin.Engine)

Jump to

Keyboard shortcuts

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