gin

package
v2.0.40 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2024 License: MIT Imports: 8 Imported by: 6

Documentation

Index

Constants

View Source
const (
	AppName = "gin_webframework"
)

Variables

This section is empty.

Functions

func ObjectRouter

func ObjectRouter(obj ioc.Object) gin.IRouter

添加对象前缀路径

func RootRouter

func RootRouter() *gin.Engine

Types

type GinFramework

type GinFramework struct {
	ioc.ObjectImpl
	Engine *gin.Engine

	// 开启recovery恢复
	Recovery bool `json:"recovery" yaml:"recovery" toml:"recovery" env:"RECOVERY"`
	// Gin模式
	Mode string `toml:"mode" json:"mode" yaml:"mode" env:"Mode"`
	// 开启Trace
	Trace bool `toml:"trace" json:"trace" yaml:"trace" env:"TRACE"`
	// contains filtered or unexported fields
}

func (*GinFramework) Init

func (g *GinFramework) Init() error

func (*GinFramework) Name

func (g *GinFramework) Name() string

func (*GinFramework) Priority

func (g *GinFramework) Priority() int

Jump to

Keyboard shortcuts

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