benchrun

package
v0.0.0-...-af971f5 Latest Latest
Warning

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

Go to latest
Published: Jun 6, 2023 License: MIT Imports: 9 Imported by: 2

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func GetAllAddresses

func GetAllAddresses() string

GetAllAddresses returns all addresses given by a supervisor ($ISUXBENCH_ALL_ADDRESSES environment variable.)

func GetTargetAddress

func GetTargetAddress() string

GetTargetAddress returns a target address given by a supervisor ($ISUXBENCH_TARGET environment variable.)

Types

type BoundReporter

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

BoundReporter is a Reporter backed with a fd to isuxportal_supervisor.

func (*BoundReporter) Report

Report sends a BenchmarkResult message to a client. Returns an error when invalid message is found at the client side, or failed to send.

type NullReporter

type NullReporter struct{}

NullReporter is a Reporter not backed with anything.

func (*NullReporter) Report

Report sends a BenchmarkResult message, but this does nothing because NullReporter is not backed with anything.

type Reporter

type Reporter interface {
	Report(result *isuxportalResources.BenchmarkResult) error
}

Reporter is a client for isuxportal_supervisor. Send a BenchmarkResult message to the isuxportal via the supervisor.

func NewReporter

func NewReporter(mustPresent bool) (Reporter, error)

NewReporter returns a Reporter with a given ISUXBENCH_REPORT_FD. When mustPresent is true, it will returns an error when no prerequisite environment variable and file descriptor given. Otherwise, it will return NullReporter.

Jump to

Keyboard shortcuts

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