workload

package
v0.0.0-...-4a4870b Latest Latest
Warning

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

Go to latest
Published: Mar 24, 2023 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const EchoWorkloadName = "Echo"
View Source
const PIWorkloadName = "PI"

Variables

This section is empty.

Functions

This section is empty.

Types

type EchoWorkload

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

func (*EchoWorkload) Execute

func (w *EchoWorkload) Execute() (string, string, error)

func (*EchoWorkload) GetName

func (w *EchoWorkload) GetName() string

type PIWorkload

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

func (*PIWorkload) Execute

func (w *PIWorkload) Execute() (string, string, error)

func (*PIWorkload) GetName

func (w *PIWorkload) GetName() string

type Workload

type Workload interface {
	GetName() string
	Execute() (string, string, error)
}

func NewEchoWorkload

func NewEchoWorkload(str string, logger log.Logger) Workload

func NewPIWorkload

func NewPIWorkload(count uint, logger log.Logger) Workload

Jump to

Keyboard shortcuts

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