Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartHTTPServer ¶ added in v0.34.0
func StartHTTPServer(port int)
func StartUDPEchoServer ¶ added in v0.34.0
func StartUDPEchoServer(port int)
func StartUnixDomainServer ¶
func StartUnixDomainServer(unixPath string)
Types ¶
type EchoServer ¶
type EchoServer struct {
// contains filtered or unexported fields
}
func NewEchoServer ¶
func NewEchoServer(port int, repeatedNum int, specifyStr string) *EchoServer
func (*EchoServer) Start ¶
func (es *EchoServer) Start() error
func (*EchoServer) Stop ¶
func (es *EchoServer) Stop()
type HTTPServer ¶ added in v0.34.0
type HTTPServer struct {
// contains filtered or unexported fields
}
func NewHTTPServer ¶ added in v0.34.0
func NewHTTPServer(port int, handler http.HandlerFunc) *HTTPServer
func (*HTTPServer) Start ¶ added in v0.34.0
func (hs *HTTPServer) Start() error
func (*HTTPServer) Stop ¶ added in v0.34.0
func (hs *HTTPServer) Stop()
Click to show internal directories.
Click to hide internal directories.