app

package
v0.0.0-...-e83a2f5 Latest Latest
Warning

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

Go to latest
Published: Nov 20, 2020 License: Apache-2.0 Imports: 20 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 (*Job) Close

func (j *Job) Close()

func (*Job) RunAmount

func (j *Job) RunAmount(amount int64)

func (*Job) RunDuration

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

func (*Job) Stats

func (j *Job) Stats() (*Stats, error)

type Stats

type Stats struct {
	StartedAt          int64   `json:"started_at,omitempty"`
	Concurrency        int64   `json:"concurrency,omitempty"`
	TotalAmount        int64   `json:"total_amount,omitempty"`
	FinishedAmount     int64   `json:"finished_amount,omitempty"`
	DurationMicro      int64   `json:"duration_micro,omitempty"`
	TotalDurationMicro int64   `json:"total_duration_micro,omitempty"`
	AverageCostMicro   float64 `json:"average_cost_micro,omitempty"`
}

Jump to

Keyboard shortcuts

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