Documentation ¶
Overview ¶
Package worker implements the worker related activities like starting TCP/UDP/HTTP client/server and collecting the metric output to be returned to the controller when requested.
Index ¶
Constants ¶
View Source
const ( ProtocolTCP = "TCP" ProtocolUDP = "UDP" ProtocolHTTP = "HTTP" )
Protocols supported.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Worker ¶
type Worker struct {
// contains filtered or unexported fields
}
Worker holds data required for facilitating measurement.
func (*Worker) Handler ¶
func (w *Worker) Handler(rw http.ResponseWriter, _ *http.Request)
Handler handles http requests for http measurements.
func (*Worker) StartHTTPServer ¶
func (w *Worker) StartHTTPServer()
StartHTTPServer starts an http server for http measurements.
Click to show internal directories.
Click to hide internal directories.