Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BasicServer ¶
type BasicServer struct {
CertFile string
KeyFile string
ServerType testresponder.ServerType
ForwardingAddr string
Labels prometheus.Labels
}
BasicServer contains everything needed to start a new server on a random port.
func (*BasicServer) ListenAndServeRawAsync ¶
func (s *BasicServer) ListenAndServeRawAsync(ctx context.Context, addr string) error
ListenAndServeRawAsync starts up the sniffing server that delegates to the appropriate just-TCP or WS protocol.Connection.
func (*BasicServer) ServeHTTP ¶
func (s *BasicServer) ServeHTTP(w http.ResponseWriter, r *http.Request)
ServeHTTP is the command channel for the NDT-WS or NDT-WSS test. All subsequent client communication is synchronized with this method. Returning closes the websocket connection, so only occurs after all tests complete or an unrecoverable error. It is called ServeHTTP to make sure that the Server implements the http.Handler interface.
Directories
¶
| Path | Synopsis |
|---|---|
|
Package web100 provides web100 variables (or a simulation thereof) to interested systems.
|
Package web100 provides web100 variables (or a simulation thereof) to interested systems. |
Click to show internal directories.
Click to hide internal directories.