Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
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 ¶
func (rep *BoundReporter) Report(result *isuxportalResources.BenchmarkResult) error
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 ¶
func (rep *NullReporter) Report(result *isuxportalResources.BenchmarkResult) error
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 ¶
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.