mock

package
v0.0.0-...-d3354c4 Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2019 License: LGPL-2.1 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockConn

type MockConn struct {
	// contains filtered or unexported fields
}

func (*MockConn) Close

func (mc *MockConn) Close() error

func (*MockConn) LocalAddr

func (mc *MockConn) LocalAddr() f2f.Addr

func (*MockConn) Read

func (mc *MockConn) Read(p []byte) (n int, err error)

func (*MockConn) RemoteAddr

func (mc *MockConn) RemoteAddr() f2f.Addr

func (*MockConn) Write

func (mc *MockConn) Write(p []byte) (n int, err error)

type MockListener

type MockListener struct {
	// contains filtered or unexported fields
}

func (*MockListener) Accept

func (ml *MockListener) Accept() (f2f.Conn, error)

func (*MockListener) Addr

func (ml *MockListener) Addr() f2f.Addr

func (*MockListener) Close

func (ml *MockListener) Close() error

type World

type World struct {
	// contains filtered or unexported fields
}

func NewWorld

func NewWorld() *World

func (*World) CreateListener

func (w *World) CreateListener() f2f.Listener

Jump to

Keyboard shortcuts

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