mock

package
v0.23.1 Latest Latest
Warning

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

Go to latest
Published: Jan 16, 2019 License: Apache-2.0 Imports: 12 Imported by: 0

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

Jump to

Keyboard shortcuts

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