concurrentload

package
v0.0.0-...-e03548b Latest Latest
Warning

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

Go to latest
Published: Sep 10, 2021 License: MIT Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	ErrorFatalToStopLoad = errors.New("fatal error happened, stop load all")
)

Functions

This section is empty.

Types

type LoadManager

type LoadManager interface {
	Register(loader Loader)
	LoadAll(ctx context.Context) error
}

type Loader

type Loader interface {
	Prepare(ctx context.Context) error // 返回了错误则不进行之后的步骤
	Load(context.Context)              // 并行Load
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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