engine

package
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2024 License: MIT Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	//全局上下文
	Ctx g.Ctx = gctx.New()
	//接口端口
	ServerAddress = g.Cfg().MustGet(Ctx, "server.address").String()
	//接口基础地址 前后不带斜杠
	BaseApiPath = g.Cfg().MustGet(Ctx, "systemRun.baseApiPath").String()
)

Functions

func Auth

func Auth(r *ghttp.Request)

鉴权

func CORS

func CORS(r *ghttp.Request)

跨域中间件

func CtxInfo

func CtxInfo(r *ghttp.Request)

上下文

func Demo

func Demo(r *ghttp.Request)

Types

This section is empty.

Jump to

Keyboard shortcuts

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