router

package
v0.1.6 Latest Latest
Warning

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

Go to latest
Published: Aug 8, 2022 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetIRoutes

func GetIRoutes(relativePath string, middleware ...gin.HandlerFunc) gin.IRoutes

func GetRouter

func GetRouter() *gin.Engine

func SetWriter added in v0.1.6

func SetWriter(w io.Writer)

Types

type RouterConfig added in v0.1.6

type RouterConfig struct {
	Enable    bool `mapstructure:"enable" json:"enable" yaml:"enable"`             // 是否开启
	LogEnable bool `mapstructure:"log_enable" json:"log_enable" yaml:"log_enable"` //
}

func (RouterConfig) Load added in v0.1.6

func (rc RouterConfig) Load()

Jump to

Keyboard shortcuts

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