router

package
v0.0.0-...-49281bb Latest Latest
Warning

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

Go to latest
Published: Aug 26, 2021 License: GPL-3.0 Imports: 31 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	Engine *gin.Engine
)

Functions

func InitRouter

func InitRouter(RunMode string, addr string)

func InitUpdateApiByGinRoutes

func InitUpdateApiByGinRoutes()

func Ping

func Ping(c *gin.Context)

func Query

func Query(c *gin.Context)

func RegisterRouter

func RegisterRouter(engine *gin.Engine) error

RegisterRouter 注册/api路由

func ServerIPv4s

func ServerIPv4s() ([]string, error)

ServerIPv4s LocalIPs return all non-loopback IPv4 addresses

Types

This section is empty.

Jump to

Keyboard shortcuts

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