gin

package
v2.0.29 Latest Latest
Warning

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

Go to latest
Published: Sep 11, 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恢复
	EnableRecovery bool `json:"enable_recovery" yaml:"enable_recovery" toml:"enable_recovery" env:"ENABLE_RECOVERY"`
	// 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