step

package
v1.2.4 Latest Latest
Warning

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

Go to latest
Published: May 10, 2024 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Builder

type Builder struct {
	// contains filtered or unexported fields
}

func NewBuilder

func NewBuilder(stepper stepper.Stepper) *Builder

func (*Builder) Async

func (b *Builder) Async() *Builder

func (*Builder) Break

func (b *Builder) Break() *Builder

func (*Builder) Build

func (b *Builder) Build() *Step

func (*Builder) Continue

func (b *Builder) Continue() *Builder

func (*Builder) Interrupt

func (b *Builder) Interrupt() *Builder

func (*Builder) Name

func (b *Builder) Name(name string) *Builder

func (*Builder) Retry

func (b *Builder) Retry() *Builder

type Options

type Options struct {
	Name  string
	Async bool
	Retry bool
	Break bool
}

func (*Options) Retryable

func (o *Options) Retryable(base *bool) (retry bool)

type Step

type Step struct {
	Stepper stepper.Stepper
	Options *Options
	// contains filtered or unexported fields
}

Step 步骤

func New

func New(stepper stepper.Stepper, options *Options) *Step

func NewDebug

func NewDebug() *Step

NewDebug 创建延迟步骤,调试使用

func NewDelay

func NewDelay(delay time.Duration) *Step

NewDelay 创建延迟步骤,调试使用

type Steps

type Steps []*Step

Steps 步骤集

func (*Steps) Add

func (s *Steps) Add(steps ...*Step)

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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