mocks

package
v0.0.0-...-379bc4c Latest Latest
Warning

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

Go to latest
Published: Aug 25, 2019 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Conn

type Conn struct {
	mock.Mock
}

Conn is an autogenerated mock type for the Conn type

func (*Conn) Close

func (_m *Conn) Close() error

Close provides a mock function with given fields:

func (*Conn) ReadFromUDP

func (_m *Conn) ReadFromUDP(b []byte) (int, *net.UDPAddr, error)

ReadFromUDP provides a mock function with given fields: b

func (*Conn) WriteTo

func (_m *Conn) WriteTo(_a0 []byte, _a1 net.Addr) (int, error)

WriteTo provides a mock function with given fields: _a0, _a1

type Inbound

type Inbound struct {
	mock.Mock
}

Inbound is an autogenerated mock type for the Inbound type

func (*Inbound) Packets

func (_m *Inbound) Packets() <-chan *packet.Packet

Packets provides a mock function with given fields:

func (*Inbound) Stop

func (_m *Inbound) Stop() error

Stop provides a mock function with given fields:

type InboundConn

type InboundConn struct {
	mock.Mock
}

InboundConn is an autogenerated mock type for the InboundConn type

func (*InboundConn) ReadFromUDP

func (_m *InboundConn) ReadFromUDP(b []byte) (int, *net.UDPAddr, error)

ReadFromUDP provides a mock function with given fields: b

type Outbound

type Outbound struct {
	mock.Mock
}

Outbound is an autogenerated mock type for the Outbound type

func (*Outbound) Call

func (_m *Outbound) Call(method string, params interface{}) ([]byte, error)

Call provides a mock function with given fields: method, params

func (*Outbound) CallAndDeserialize

func (_m *Outbound) CallAndDeserialize(method string, params interface{}, resp interface{}) error

CallAndDeserialize provides a mock function with given fields: method, params, resp

func (*Outbound) Handle

func (_m *Outbound) Handle(pkt *packet.Packet) error

Handle provides a mock function with given fields: pkt

func (*Outbound) Send

func (_m *Outbound) Send(_a0 *packet.Packet) error

Send provides a mock function with given fields: _a0

type OutboundConn

type OutboundConn struct {
	mock.Mock
}

OutboundConn is an autogenerated mock type for the OutboundConn type

func (*OutboundConn) WriteTo

func (_m *OutboundConn) WriteTo(_a0 []byte, _a1 net.Addr) (int, error)

WriteTo provides a mock function with given fields: _a0, _a1

type Transport

type Transport struct {
	mock.Mock
}

Transport is an autogenerated mock type for the Transport type

func (*Transport) Close

func (_m *Transport) Close() error

Close provides a mock function with given fields:

func (*Transport) Inbound

func (_m *Transport) Inbound() transport.Inbound

Inbound provides a mock function with given fields:

func (*Transport) NewOutbound

func (_m *Transport) NewOutbound(crypto packet.Crypto, dest net.Addr) transport.Outbound

NewOutbound provides a mock function with given fields: crypto, dest

Jump to

Keyboard shortcuts

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