Documentation ¶
Overview ¶
parser @author LanguageY++2013 2023/4/3 20:44 @company soulgame
Index ¶
Constants ¶
View Source
const ( CtxRulesKey = "rules" CtxTeamsKey = "teams" CtxReturnKey = "return" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chain ¶
type Chain struct {
// contains filtered or unexported fields
}
func (*Chain) Add ¶
func (c *Chain) Add(wrapper UserHandlerWrapper)
func (*Chain) BuildQueue ¶
func (c *Chain) BuildQueue() UserHandlerWrapper
func (*Chain) BuildStack ¶
func (c *Chain) BuildStack() UserHandlerWrapper
type UserHandler ¶
type UserHandlerWrapper ¶
type UserHandlerWrapper func(ctx context.Context, handler UserHandler)
func ChainUserHandlerWrapper ¶
func ChainUserHandlerWrapper(stack bool, interceptors ...UserHandlerWrapper) UserHandlerWrapper
ChainUserHandlerWrapper 构建调用链
Click to show internal directories.
Click to hide internal directories.