Versions in this module Expand all Collapse all v2 v2.3.2 Dec 21, 2022 Changes in this version + const BaseModuleType + const CustomModuleType + const DefaultCustomModuleName + const DefaultGoroutineModuleName + const DefaultModuleName + const DefaultTaskModuleName + const GoroutineModuleType + const TaskModuleType + type BaseModule struct + Desc string + ModuleCache *cache.Cache + Name string + PipelineCache *cache.Cache + PostHook []PostHookInterface + Runtime connector.ModuleRuntime + Skip bool + func (b *BaseModule) AppendPostHook(h PostHookInterface) + func (b *BaseModule) AutoAssert() + func (b *BaseModule) CallPostHook(result *ending.ModuleResult) error + func (b *BaseModule) Default(runtime connector.Runtime, pipelineCache *cache.Cache, ...) + func (b *BaseModule) Init() + func (b *BaseModule) Is() string + func (b *BaseModule) IsSkip() bool + func (b *BaseModule) Run(result *ending.ModuleResult) + func (b *BaseModule) Slogan() + func (b *BaseModule) Until() (*bool, error) + type BaseTaskModule struct + Tasks []task.Interface + func (b *BaseTaskModule) Init() + func (b *BaseTaskModule) Is() string + func (b *BaseTaskModule) Run(result *ending.ModuleResult) + type CustomModule struct + func (c *CustomModule) Init() + func (c *CustomModule) Is() string + type Module interface + AppendPostHook func(h PostHookInterface) + AutoAssert func() + CallPostHook func(result *ending.ModuleResult) error + Default func(runtime connector.Runtime, pipelineCache *cache.Cache, ...) + Init func() + Is func() string + IsSkip func() bool + Run func(result *ending.ModuleResult) + Slogan func() + Until func() (*bool, error) + type PostHook struct + Module Module + Result *ending.ModuleResult + func (p *PostHook) Catch(err error) error + func (p *PostHook) Finally() + func (p *PostHook) Init(module Module, result *ending.ModuleResult) + func (p *PostHook) Try() error + type PostHookInterface interface + Init func(module Module, result *ending.ModuleResult)