Documentation
¶
Index ¶
- Constants
- Variables
- func GetInjector(c *gin.Context) inject.Injector
- func LoadDataFromFile(injector inject.Injector, data interface{}, ctxFilePath string) error
- func ParseFormHandler(formValue interface{}) func(c *gin.Context)
- func RecordHttpHandler(c *gin.Context)
- type ContextPostLoad
- type Engine
- type GroupDefine
- type Middlwares
- type ObjectInit
- type Route
- type Routes
Constants ¶
View Source
const (
CTX_KEY_REQUEST_INJECTOR = "REQUEST_INJECTOR"
)
Variables ¶
View Source
var RecordHttp bool
Functions ¶
func LoadDataFromFile ¶
func ParseFormHandler ¶
Types ¶
type ContextPostLoad ¶
type ContextPostLoad interface {
PostLoad()
}
type Engine ¶
func New ¶
func New(groups map[string]GroupDefine, ctx interface{}, ctxFilePath string, middlewares ...gin.HandlerFunc) *Engine
type GroupDefine ¶
type GroupDefine struct { Routes Routes Middlwares []gin.HandlerFunc Intro string }
type Middlwares ¶
type Middlwares struct {
// contains filtered or unexported fields
}
func NewMiddlwares ¶
func NewMiddlwares(handlers ...gin.HandlerFunc) *Middlwares
func (*Middlwares) Bind ¶
func (me *Middlwares) Bind(formValue interface{}) *Middlwares
func (*Middlwares) BindForm ¶
func (me *Middlwares) BindForm(formValue interface{}) *Middlwares
type ObjectInit ¶
type ObjectInit interface {
Init()
}
Click to show internal directories.
Click to hide internal directories.