Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func RegisterSwagger ¶
RegisterSwagger register swagger service
Types ¶
type DefaultWeb ¶
type DefaultWeb struct {
// contains filtered or unexported fields
}
DefaultWeb doc @Struct DefaultWeb @Summary Default web framework
func (*DefaultWeb) Engine ¶
func (slf *DefaultWeb) Engine() *gin.Engine
Engine doc @Summary Returns gin engine
func (*DefaultWeb) Shutdown ¶
func (slf *DefaultWeb) Shutdown()
Shutdown doc @Summary shutdown system
func (*DefaultWeb) Start ¶
func (slf *DefaultWeb) Start() error
Start doc @Summary start system @Return (error) start fail returns error
func (*DefaultWeb) WithStart ¶
func (slf *DefaultWeb) WithStart(f func(IMagicWeb) error)
WithStart doc @Summary job start function to frame @Param (func()error)
Click to show internal directories.
Click to hide internal directories.