test

package
v0.0.0-...-7f4b0ac Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 6, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Logger

func Logger() logger.ILogger

func NewTestSession

func NewTestSession(router router.IRouter) router.IMiddleware

Types

type Args

type Args struct {
	Num1 int
	Num2 int
	Str  string
	Flt  float64
}

type ArithCli

type ArithCli struct {
	client.IClient
}

func NewArithCli

func NewArithCli(cli client.IClient) *ArithCli

func (ArithCli) Mul

func (self ArithCli) Mul(arg *Args) (result *Reply, err error)

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 Reply

type Reply struct {
	Num int
	Str string
	Flt float64
}

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

Directories

Path Synopsis

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL