mock

package
v0.36.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 17, 2021 License: Apache-2.0 Imports: 12 Imported by: 0

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()

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL