kernel

package
v0.0.6 Latest Latest
Warning

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

Go to latest
Published: May 8, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Constructor

type Constructor func(any) []Step

type Context

type Context struct {
	context.Context
	// contains filtered or unexported fields
}

type Step

type Step interface {
	// Name 名称
	Name() string

	// Runnable 是否需要执行本步骤
	Runnable() bool

	// Retryable 是否需要重试
	Retryable() bool

	// Asyncable 是否异步执行
	Asyncable() bool

	// Run 执行逻辑
	Run(ctx *context.Context) error
}

Jump to

Keyboard shortcuts

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