gin

package
v1.8.7 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2025 License: Apache-2.0 Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Gin

type Gin struct {
	serve.BaseAdapter

	Srv *http.Server
	// contains filtered or unexported fields
}

Gin 结构体是Gin框架的适配器,用于集成Gin到自定义框架中 Gin struct is an adapter for Gin framework, integrating Gin into the custom framework.

func (*Gin) Close added in v1.5.3

func (g *Gin) Close()

Close 实现优雅的HTTP服务关闭 Close implements graceful shutdown of the HTTP service

func (*Gin) Name

func (g *Gin) Name() string

Name 返回当前适配器名称 Name returns the name of the current adapter.

func (*Gin) Run added in v1.5.3

func (g *Gin) Run(addr string)

Run 启动HTTP服务(不加载配置服务) Run starts the HTTP server (without loading configuration service)

func (*Gin) SetApp

func (g *Gin) SetApp(app interface{}) error

SetApp 设置并验证Gin引擎实例 SetApp sets and validates the Gin engine instance.

Jump to

Keyboard shortcuts

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