Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
func RegController ¶ added in v0.5.1
func RegController(controllers ...IController)
func RegHandler ¶ added in v1.10.3
func RegHandler(handlers ...IHandler)
func RegRequest ¶ added in v1.9.18
func RegRequest(method string, uri string, handlers []gin.HandlerFunc)
func RegTplPath ¶ added in v1.10.5
func RegTplPath(pattern string)
Types ¶
type IController ¶ added in v1.9.18
type IController interface {
Handlers() []gin.HandlerFunc
Method() string
Uri() string
Request() gin.HandlerFunc
}
type IHandler ¶ added in v1.10.3
type IHandler func() (method string, uri string, handlers []gin.HandlerFunc)
type MvcService ¶
type MvcService struct {
// contains filtered or unexported fields
}
func (*MvcService) RegisterTemplatePath ¶ added in v1.10.5
func (svc *MvcService) RegisterTemplatePath(pattern string)
func (*MvcService) Start ¶
func (svc *MvcService) Start(wg *sync.WaitGroup)
Click to show internal directories.
Click to hide internal directories.