Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func StartHttpServer ¶
func StartHttpServer(port int)
func StartUdpEchoServer ¶
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 ¶
type HttpServer struct {
// contains filtered or unexported fields
}
func NewHttpServer ¶
func NewHttpServer(port int, handler http.HandlerFunc) *HttpServer
func (*HttpServer) Start ¶
func (hs *HttpServer) Start() error
func (*HttpServer) Stop ¶
func (hs *HttpServer) Stop()
Click to show internal directories.
Click to hide internal directories.