chain

package
v0.0.0-...-237b7d6 Latest Latest
Warning

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

Go to latest
Published: May 19, 2023 License: MIT Imports: 1 Imported by: 0

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 UserHandler func(ctx context.Context)

type UserHandlerWrapper

type UserHandlerWrapper func(ctx context.Context, handler UserHandler)

func ChainUserHandlerWrapper

func ChainUserHandlerWrapper(stack bool, interceptors ...UserHandlerWrapper) UserHandlerWrapper

ChainUserHandlerWrapper 构建调用链

Jump to

Keyboard shortcuts

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