Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BaseRouter ¶
type BaseRouter struct {
// contains filtered or unexported fields
}
func (*BaseRouter) RegisterRoutes ¶
func (B *BaseRouter) RegisterRoutes(engine interface{})
func (*BaseRouter) RunController ¶
func (B *BaseRouter) RunController(context interface{}, controller controllers.Controller)
func (*BaseRouter) SetContainer ¶
func (B *BaseRouter) SetContainer(container di.AppInterface)
type HTTPRouter ¶
type HTTPRouter struct {
BaseRouter
}
func (*HTTPRouter) RunController ¶
func (B *HTTPRouter) RunController(context interface{}, controller controllers.Controller)
type Router ¶
type Router interface { RegisterRoutes(interface{}) SetContainer(container di.AppInterface) RunController(interface{}, controllers.Controller) }
func NewWebSocketRouter ¶
func NewWebSocketRouter(app di.AppInterface, engine ...*engine.Engine) Router
type WebSocketRouter ¶
type WebSocketRouter struct {
BaseRouter
}
func (WebSocketRouter) New ¶
func (P WebSocketRouter) New(app di.AppInterface) Router
Click to show internal directories.
Click to hide internal directories.