ghttp

package module
v1.0.3 Latest Latest
Warning

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

Go to latest
Published: Aug 27, 2023 License: Apache-2.0 Imports: 10 Imported by: 0

README

Gourd

Gin路由实现

参与开发

直接提交PR或者Issue即可

版权信息

Gourd遵循Apache2开源协议发布,并提供免费使用。

本项目包含的第三方源码和二进制文件之版权信息另行标注。

QQ: 2653907035

Email: kyour@outlook.com

更多细节参阅 LICENSE

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetEngine

func GetEngine() *gin.Engine

GetEngine 获取Gin容器

func GetHttpServer

func GetHttpServer() *http.Server

GetHttpServer 获取http.Server实例

func HttpServerShutdown

func HttpServerShutdown(ctx context.Context)

func RunHttpServer

func RunHttpServer()

RunHttpServer 启动Http监听服务

func SetRouter

func SetRouter(call routerHandler)

SetRouter 设置路由

func Write

func Write(c *gin.Context, data string)

func WriteByte

func WriteByte(c *gin.Context, data []byte)

func WriteStaticFile

func WriteStaticFile(c *gin.Context, filepath string) error

Types

This section is empty.

Jump to

Keyboard shortcuts

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