step

package
v1.2.6 Latest Latest
Warning

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

Go to latest
Published: Sep 26, 2024 License: Apache-2.0 Imports: 4 Imported by: 0 modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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