netmock

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Nov 3, 2017 License: MPL-2.0 Imports: 4 Imported by: 0

Documentation

Overview

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

Code generated by mockery v1.0.0

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

func (_m *Conn) LocalAddr() net.Addr

LocalAddr provides a mock function with given fields:

func (*Conn) Read

func (_m *Conn) Read(b []byte) (int, error)

Read provides a mock function with given fields: b

func (*Conn) RemoteAddr

func (_m *Conn) RemoteAddr() net.Addr

RemoteAddr provides a mock function with given fields:

func (*Conn) SetDeadline

func (_m *Conn) SetDeadline(t time.Time) error

SetDeadline provides a mock function with given fields: t

func (*Conn) SetReadDeadline

func (_m *Conn) SetReadDeadline(t time.Time) error

SetReadDeadline provides a mock function with given fields: t

func (*Conn) SetWriteDeadline

func (_m *Conn) SetWriteDeadline(t time.Time) error

SetWriteDeadline provides a mock function with given fields: t

func (*Conn) Write

func (_m *Conn) Write(b []byte) (int, error)

Write provides a mock function with given fields: b

type DNSCache

type DNSCache struct {
	mock.Mock
}

DNSCache is an autogenerated mock type for the DNSCache type

func (*DNSCache) Add

func (_m *DNSCache) Add(addr string, resolved string)

Add provides a mock function with given fields: addr, resolved

func (*DNSCache) Get

func (_m *DNSCache) Get(addr string) (string, bool)

Get provides a mock function with given fields: addr

type Dialer

type Dialer struct {
	mock.Mock
}

Dialer is an autogenerated mock type for the Dialer type

func (*Dialer) DialContext

func (_m *Dialer) DialContext(ctx context.Context, _a1 string, addr string) (net.Conn, error)

DialContext provides a mock function with given fields: ctx, _a1, addr

Jump to

Keyboard shortcuts

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