Versions in this module Expand all Collapse all v1 v1.0.1 Sep 14, 2022 Changes in this version + const EXECUTE + const SWITCH + const THEN + const WHEN + func GetOuterBracketContent(value string) (string, string, error) + func RegisterAssemblyBean(bean interface{}) error + func RegisterChain(name string, assembly Assembly) error + func RegisterInterceptor(bean HandleInterceptor) error + func SortHandleInterceptor(people []HandleInterceptor, by func(p, q HandleInterceptor) bool) + func SplitOuterComma(value string) []string + type Assembly interface + Execute func(Context model.ContextHandle) error + func GetChain(name string) Assembly + type BaseConditionHandle interface + AssemblyName func() string + ProcessSwitch func(context model.ContextHandle) string + func GetConditionAssemblyBean(name string) BaseConditionHandle + type BaseHandle interface + AssemblyName func() string + DoHandle func(context model.ContextHandle) error + func GetBaseAssemblyBean(name string) BaseHandle + type ChainConfig struct + IsContinueOnError bool + Name string + Value string + type ChainExpression struct + IsContinueOnError bool + Name string + NodeExpression *NodeExpression + func (sf *ChainExpression) ParseAssembly() (Assembly, error) + type ChainList struct + ChainList []*ChainExpression + type ConfigHandle interface + IsContinueOnError func(context model.ContextHandle) bool + type ExecuteAssembly struct + Handle BaseHandle + IsContinueOnError bool + func (sf *ExecuteAssembly) Execute(Context model.ContextHandle) error + type HandleInterceptor interface + Around func(context model.ContextHandle, joinPoint *JoinPoint) error + Pointcut func() string + Sort func() int + func GetMatchInterceptor(handle BaseHandle) []HandleInterceptor + type HelpHandle interface + IsAccess func(context model.ContextHandle) bool + OnError func(context model.ContextHandle, err error) + OnSuccess func(context model.ContextHandle) + type InterceptorWrapper struct + func (pw InterceptorWrapper) Len() int + func (pw InterceptorWrapper) Less(i, j int) bool + func (pw InterceptorWrapper) Swap(i, j int) + type JoinPoint struct + func NewJoinPoint(executeAssembly *ExecuteAssembly, handleInterceptor []HandleInterceptor) *JoinPoint + func (sf *JoinPoint) Execute(Context model.ContextHandle) error + type NodeExpression struct + NodeName string + NodeType string + SubNode []*NodeExpression + func ParseChainRule2(value string) (*NodeExpression, error) + type NodeType string + type SWITCHAssembly struct + ConditionHandle BaseConditionHandle + SelectAssemblys map[string]*Assembly + func (sf *SWITCHAssembly) Execute(Context model.ContextHandle) error + type StreamConfig struct + ChainConfigs []ChainConfig + func AnalysePath(path string) (*StreamConfig, error) + func (sf *StreamConfig) Parse() ([]*ChainExpression, error) + type ThenAssembly struct + Assemblys []Assembly + func (sf *ThenAssembly) Execute(Context model.ContextHandle) error + type WHENAssembly struct + Assemblys []Assembly + func (sf *WHENAssembly) Execute(context model.ContextHandle) error