Documentation ¶
Index ¶
- type EchoRequest
- type EchoResponse
- type GlobalInterruptFilter
- type InterruptFilter
- type LogFilter
- type NumberFilter
- type RpcService
- func (s *RpcService) CtxEcho(ctx SpringWeb.WebContext, request *EchoRequest) *EchoResponse
- func (s *RpcService) Echo(request EchoRequest) *EchoResponse
- func (s *RpcService) EchoCtx(request EchoRequest, ctx SpringWeb.WebContext) *EchoResponse
- func (s *RpcService) Err(ctx SpringWeb.WebContext) interface{}
- func (s *RpcService) NoParam()
- func (s *RpcService) OK(ctx SpringWeb.WebContext) interface{}
- func (s *RpcService) Panic(ctx SpringWeb.WebContext) interface{}
- func (s *RpcService) PtrEcho(request *EchoRequest) *EchoResponse
- type Service
- type StringFilter
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 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
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)
Click to show internal directories.
Click to hide internal directories.