Documentation
¶
Overview ¶
Package worker implements the Pulse distributed worker HTTP server. A worker listens for RunRequests from a coordinator, executes the load test, and returns a WorkerResult with full histogram data for accurate latency merging.
Usage (library mode — pre-registered scenario):
srv := worker.New(myScenario)
if err := srv.ListenAndServe(ctx, ":9100"); err != nil {
log.Fatal(err)
}
Usage (CLI mode — scenario built from RunRequest.HTTPScenario):
srv := worker.New(nil)
if err := srv.ListenAndServe(ctx, ":9100"); err != nil {
log.Fatal(err)
}
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server is a Pulse distributed worker. It accepts RunRequests from a coordinator over HTTP and executes the load test locally.
Click to show internal directories.
Click to hide internal directories.