Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( FrontendHashesMap = make(map[string]string) FrontendPathScenarioFiles = make(map[FrontendPathScenario][]string) )
View Source
var FRONTEND_PATH_SCENARIOS = map[FrontendPathScenario][]string{ FRONTEND_PATH_SCENARIO_CLIENT_REGISTER_1: {"/client"}, FRONTEND_PATH_SCENARIO_CLIENT_REGISTER_2: {"/client", "/client/register"}, FRONTEND_PATH_SCENARIO_CLIENT_REGISTER_3: {"/client", "/client/register", "/client/register-payment"}, FRONTEND_PATH_SCENARIO_CLIENT_EVALUATION: {"/client"}, FRONTEND_PATH_SCENARIO_CLIENT_CHECK_HISTORY_1: {"/client"}, FRONTEND_PATH_SCENARIO_CLIENT_CHECK_HISTORY_2: {"/client", "/client/history"}, FRONTEND_PATH_SCENARIO_OWNER_REGISTER_1: {"/owner"}, FRONTEND_PATH_SCENARIO_OWNER_REGISTER_2: {"/owner", "/owner/register"}, FRONTEND_PATH_SCENARIO_OWNER_CHAIRS: {"/owner"}, FRONTEND_PATH_SCENARIO_OWNER_SALES: {"/owner", "/owner/sales"}, }
Functions ¶
func GetAllAddresses ¶
func GetAllAddresses() string
GetAllAddresses returns all addresses given by a supervisor ($ISUXBENCH_ALL_ADDRESSES environment variable.)
func GetReportFD ¶
GetReportFD returns a file descriptor for reporting results given by a supervisor ($ISUXBENCH_REPORT_FD environment variable.)
func GetTargetAddress ¶
func GetTargetAddress() string
GetTargetAddress returns a target address given by a supervisor ($ISUXBENCH_TARGET environment variable.)
Types ¶
type FDReporter ¶
type FDReporter struct {
// contains filtered or unexported fields
}
func NewFDReporter ¶
func NewFDReporter(fd int) (*FDReporter, error)
func (*FDReporter) Flush ¶
func (rep *FDReporter) Flush() error
func (*FDReporter) Report ¶
func (rep *FDReporter) Report(result *resources.BenchmarkResult) error
func (*FDReporter) Write ¶
func (rep *FDReporter) Write(buf []byte) error
type FrontendPathScenario ¶
type FrontendPathScenario int
const ( FRONTEND_PATH_SCENARIO_CLIENT_REGISTER_1 FrontendPathScenario = iota FRONTEND_PATH_SCENARIO_CLIENT_REGISTER_2 FRONTEND_PATH_SCENARIO_CLIENT_REGISTER_3 FRONTEND_PATH_SCENARIO_CLIENT_EVALUATION FRONTEND_PATH_SCENARIO_CLIENT_CHECK_HISTORY_1 FRONTEND_PATH_SCENARIO_CLIENT_CHECK_HISTORY_2 FRONTEND_PATH_SCENARIO_OWNER_REGISTER_1 FRONTEND_PATH_SCENARIO_OWNER_REGISTER_2 FRONTEND_PATH_SCENARIO_OWNER_CHAIRS FRONTEND_PATH_SCENARIO_OWNER_SALES )
type NullReporter ¶
type NullReporter struct{}
NullReporter is for testing
func (*NullReporter) Report ¶
func (rep *NullReporter) Report(result *resources.BenchmarkResult) error
type Reporter ¶
type Reporter interface {
Report(result *resources.BenchmarkResult) error
}
Click to show internal directories.
Click to hide internal directories.