Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MotionController ¶
type MotionController struct { Path string Handlers []MotionRouter }
func NewMotionController ¶
func NewMotionController(path string, controllers ...MotionRouter) MotionController
type MotionGo ¶
type MotionGo struct { MotionEngine *gin.Engine PropertiesFile *properties.Properties Routers []RoutersVersion }
func NewMotionGo ¶
func (*MotionGo) AddRouter ¶
func (m *MotionGo) AddRouter(version ...RoutersVersion)
func (*MotionGo) CreateRouters ¶
func (m *MotionGo) CreateRouters()
type MotionRouter ¶
type MotionRouter struct { Path string Method string Service func(*gin.Context) Middleware []gin.HandlerFunc }
func NewMotionRouter ¶
func NewMotionRouter(method, path string, service gin.HandlerFunc, middleware ...gin.HandlerFunc) MotionRouter
type RoutersVersion ¶
type RoutersVersion struct { Version string Handlers []func() MotionController }
Click to show internal directories.
Click to hide internal directories.