testcases

package
v1.0.4 Latest Latest
Warning

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

Go to latest
Published: Jun 23, 2020 License: Apache-2.0 Imports: 8 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type EchoRequest added in v1.0.2

type EchoRequest struct {
	Str string `query:"str" validate:"required,len=4"`
}

type EchoResponse added in v1.0.2

type EchoResponse struct {
	Echo string `json:"echo"`
}

type GlobalInterruptFilter added in v1.0.2

type GlobalInterruptFilter struct{}

func (*GlobalInterruptFilter) Invoke added in v1.0.2

func (f *GlobalInterruptFilter) Invoke(ctx SpringWeb.WebContext, chain SpringWeb.FilterChain)

type InterruptFilter added in v1.0.2

type InterruptFilter struct{}

func (*InterruptFilter) Invoke added in v1.0.2

func (f *InterruptFilter) Invoke(ctx SpringWeb.WebContext, chain SpringWeb.FilterChain)

type LogFilter added in v1.0.2

type LogFilter struct{}

func (*LogFilter) Invoke added in v1.0.2

func (f *LogFilter) Invoke(ctx SpringWeb.WebContext, chain SpringWeb.FilterChain)

type NumberFilter

type NumberFilter struct {
	// contains filtered or unexported fields
}

func NewNumberFilter

func NewNumberFilter(n int, l *list.List) *NumberFilter

func (*NumberFilter) Invoke

func (f *NumberFilter) Invoke(ctx SpringWeb.WebContext, chain SpringWeb.FilterChain)

type RpcService

type RpcService struct{}

func (*RpcService) CtxEcho added in v1.0.4

func (s *RpcService) CtxEcho(ctx SpringWeb.WebContext, request *EchoRequest) *EchoResponse

Echo BIND 的第一种 WebContext 形式

func (*RpcService) Echo added in v1.0.2

func (s *RpcService) Echo(request EchoRequest) *EchoResponse

Echo BIND 的结构体参数形式

func (*RpcService) EchoCtx added in v1.0.4

func (s *RpcService) EchoCtx(request EchoRequest, ctx SpringWeb.WebContext) *EchoResponse

Echo BIND 的另一种 WebContext 形式

func (*RpcService) Err

func (s *RpcService) Err(ctx SpringWeb.WebContext) interface{}

func (*RpcService) NoParam added in v1.0.4

func (s *RpcService) NoParam()

func (*RpcService) OK

func (s *RpcService) OK(ctx SpringWeb.WebContext) interface{}

func (*RpcService) Panic

func (s *RpcService) Panic(ctx SpringWeb.WebContext) interface{}

func (*RpcService) PtrEcho added in v1.0.4

func (s *RpcService) PtrEcho(request *EchoRequest) *EchoResponse

PtrEcho BIND 的结构体指针参数形式

type Service

type Service struct {
	// contains filtered or unexported fields
}

func NewService

func NewService() *Service

func (*Service) Get

func (s *Service) Get(ctx SpringWeb.WebContext)

func (*Service) Panic

func (s *Service) Panic(ctx SpringWeb.WebContext)

func (*Service) Set

func (s *Service) Set(ctx SpringWeb.WebContext)

type StringFilter added in v1.0.4

type StringFilter struct {
	// contains filtered or unexported fields
}

func NewStringFilter added in v1.0.4

func NewStringFilter(s string) *StringFilter

func (*StringFilter) Invoke added in v1.0.4

func (f *StringFilter) Invoke(ctx SpringWeb.WebContext, chain SpringWeb.FilterChain)

Jump to

Keyboard shortcuts

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