Documentation ¶
Index ¶
- func Logger() logger.ILogger
- func NewTestSession(router router.IRouter) router.IMiddleware
- type Args
- type ArithCli
- type ArithCtrl
- type CtrlWithMiddleware
- func (ctrl CtrlWithMiddleware) After(ctx *router.THttpContext)
- func (ctrl CtrlWithMiddleware) Before(ctx *router.THttpContext)
- func (ctrl CtrlWithMiddleware) HelloWorld(ctx *router.THttpContext)
- func (ctrl CtrlWithMiddleware) Init(cfg *router.ControllerConfig)
- func (ctrl CtrlWithMiddleware) WithoutMiddlware(ctx *router.THttpContext)
- type Reply
- type TestSession
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewTestSession ¶
func NewTestSession(router router.IRouter) router.IMiddleware
Types ¶
type ArithCli ¶
func NewArithCli ¶
type ArithCtrl ¶
type ArithCtrl struct { }
func (ArithCtrl) Mul ¶
func (t ArithCtrl) Mul(ctx *router.TRpcContext)
type CtrlWithMiddleware ¶
type CtrlWithMiddleware struct { event.TEvent Session *TestSession }
func (CtrlWithMiddleware) After ¶
func (ctrl CtrlWithMiddleware) After(ctx *router.THttpContext)
func (CtrlWithMiddleware) Before ¶
func (ctrl CtrlWithMiddleware) Before(ctx *router.THttpContext)
func (CtrlWithMiddleware) HelloWorld ¶
func (ctrl CtrlWithMiddleware) HelloWorld(ctx *router.THttpContext)
func (CtrlWithMiddleware) Init ¶
func (ctrl CtrlWithMiddleware) Init(cfg *router.ControllerConfig)
func (CtrlWithMiddleware) WithoutMiddlware ¶
func (ctrl CtrlWithMiddleware) WithoutMiddlware(ctx *router.THttpContext)
type TestSession ¶
type TestSession struct {
Id string
}
func (*TestSession) Handler ¶
func (self *TestSession) Handler(ctx router.IContext)
func (*TestSession) Name ¶
func (self *TestSession) Name() string
Click to show internal directories.
Click to hide internal directories.