app

package
v0.2.1 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2021 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MakeCmdRun

func MakeCmdRun(
	pLogger **zap.Logger,
	pDebug *bool,
) *cobra.Command

Types

type Job

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

func NewJob

func NewJob(
	logger *zap.Logger,
	fs afero.Fs,
	entry string,
	concurrency int,
	envs map[string]string,
	newFS func() afero.Fs,
	reporter stat.Reporter,
) (*Job, error)

func (*Job) Close

func (j *Job) Close()

func (*Job) Run

func (j *Job) Run(shouldStop func() bool)

func (*Job) RunAmount

func (j *Job) RunAmount(amount int64)

func (*Job) RunDuration

func (j *Job) RunDuration(duration time.Duration)

Jump to

Keyboard shortcuts

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