coreGinServer

package
v0.0.24 Latest Latest
Warning

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

Go to latest
Published: Jul 22, 2026 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ServerSet added in v0.0.14

type ServerSet struct {
	Port              int
	Name              string
	RegisterFunc      func(*gin.Engine)
	EnableGinLog      bool
	SetGinMode        string
	GinEngine         *gin.Engine
	HttpSrv           *http.Server
	EngineWithDefault bool // 是否使用默认的 gin.Default() 拥有默认的日志

	BeforeStartFunc func(*gin.Engine) //启动前执行
	AfterStartFunc  func(*gin.Engine) //启动后执行
	BeforeStopFunc  func(*gin.Engine) //启动后执行
	AfterStopFunc   func()            //关闭后执行
}

func (*ServerSet) StartSever added in v0.0.15

func (set *ServerSet) StartSever() *ServerSet

StartSever 启动服务

func (*ServerSet) StopServer added in v0.0.15

func (set *ServerSet) StopServer()

StopServer 监听关闭服务

Jump to

Keyboard shortcuts

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