web

package
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 5, 2022 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const (
	LOCALHOST = "localhost"
	PORT8080  = 8080
)

Variables

This section is empty.

Functions

func HttpCheckHealth

func HttpCheckHealth(router *gin.Engine)

HttpCheckHealth 检查服务健康

func HttpPing

func HttpPing(router *gin.Engine)

HttpPing router ping

Types

type LierGin

type LierGin struct {
	// contains filtered or unexported fields
}

func NewGin

func NewGin(routerFunc ...func(router *gin.Engine)) *LierGin

func (*LierGin) SetRouters

func (l *LierGin) SetRouters(routerFunc ...func(router *gin.Engine))

func (*LierGin) SetServer

func (l *LierGin) SetServer(c *http.Server)

func (*LierGin) Start

func (l *LierGin) Start() error

func (*LierGin) Stop

func (l *LierGin) Stop()

Stop http server stop

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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