Documentation ¶
Index ¶
- func TCPBlacListMiddleware() func(c *TcpSliceRouterContext)
- func TCPFlowCountMiddleware() func(c *TcpSliceRouterContext)
- func TCPFlowLimitMiddleware() func(c *TcpSliceRouterContext)
- func TCPWhileListMiddleware() func(c *TcpSliceRouterContext)
- type TcpHandlerFunc
- type TcpSliceGroup
- type TcpSliceRouter
- type TcpSliceRouterContext
- type TcpSliceRouterHandler
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func TCPBlacListMiddleware ¶
func TCPBlacListMiddleware() func(c *TcpSliceRouterContext)
func TCPFlowCountMiddleware ¶
func TCPFlowCountMiddleware() func(c *TcpSliceRouterContext)
func TCPFlowLimitMiddleware ¶
func TCPFlowLimitMiddleware() func(c *TcpSliceRouterContext)
func TCPWhileListMiddleware ¶
func TCPWhileListMiddleware() func(c *TcpSliceRouterContext)
Types ¶
type TcpHandlerFunc ¶
type TcpHandlerFunc func(*TcpSliceRouterContext)
type TcpSliceGroup ¶
type TcpSliceGroup struct { *TcpSliceRouter // contains filtered or unexported fields }
TcpSliceGroup group 结构体
func (*TcpSliceGroup) Use ¶
func (g *TcpSliceGroup) Use(middlewares ...TcpHandlerFunc) *TcpSliceGroup
Use 构造回调方法
type TcpSliceRouter ¶
type TcpSliceRouter struct {
// contains filtered or unexported fields
}
TcpSliceRouter router 结构体
func (*TcpSliceRouter) Group ¶
func (g *TcpSliceRouter) Group(path string) *TcpSliceGroup
Group 创建 Group
type TcpSliceRouterContext ¶
type TcpSliceRouterContext struct { Ctx context.Context *TcpSliceGroup // contains filtered or unexported fields }
TcpSliceRouterContext router上下文
func (*TcpSliceRouterContext) Get ¶
func (c *TcpSliceRouterContext) Get(key interface{}) interface{}
func (*TcpSliceRouterContext) IsAborted ¶
func (c *TcpSliceRouterContext) IsAborted() bool
IsAborted 是否跳过了回调
func (*TcpSliceRouterContext) Set ¶
func (c *TcpSliceRouterContext) Set(key, val interface{})
type TcpSliceRouterHandler ¶
type TcpSliceRouterHandler struct {
// contains filtered or unexported fields
}
func NewTcpSliceRouterHandler ¶
func NewTcpSliceRouterHandler(coreFunc func(*TcpSliceRouterContext) tcp_server.TCPHandler, router *TcpSliceRouter) *TcpSliceRouterHandler
Click to show internal directories.
Click to hide internal directories.