Documentation
¶
Overview ¶
package waitforserver provides a function to wait for a server at given address.
Typical usage:
import (
"time"
. "github.com/getlantern/waitforserver"
)
func doStuff() {
// start a server at localhost:5234
if err := WaitForServer("tcp", "localhost:5234", 10 * time.Second); err != nil {
// handle failure
}
}
}
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
This section is empty.
Click to show internal directories.
Click to hide internal directories.

