Documentation ¶
Overview ¶
Package netpoll is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockConn
- func (m *MockConn) Close() error
- func (m *MockConn) EXPECT() *MockConnMockRecorder
- func (m *MockConn) Fd() int
- func (m *MockConn) LocalAddr() net.Addr
- func (m *MockConn) Read(b []byte) (int, error)
- func (m *MockConn) RemoteAddr() net.Addr
- func (m *MockConn) SetDeadline(t time.Time) error
- func (m *MockConn) SetReadDeadline(t time.Time) error
- func (m *MockConn) SetWriteDeadline(t time.Time) error
- func (m *MockConn) Write(b []byte) (int, error)
- type MockConnMockRecorder
- func (mr *MockConnMockRecorder) Close() *gomock.Call
- func (mr *MockConnMockRecorder) Fd() *gomock.Call
- func (mr *MockConnMockRecorder) LocalAddr() *gomock.Call
- func (mr *MockConnMockRecorder) Read(b interface{}) *gomock.Call
- func (mr *MockConnMockRecorder) RemoteAddr() *gomock.Call
- func (mr *MockConnMockRecorder) SetDeadline(t interface{}) *gomock.Call
- func (mr *MockConnMockRecorder) SetReadDeadline(t interface{}) *gomock.Call
- func (mr *MockConnMockRecorder) SetWriteDeadline(t interface{}) *gomock.Call
- func (mr *MockConnMockRecorder) Write(b interface{}) *gomock.Call
- type MockConnection
- func (m *MockConnection) AddCloseCallback(callback netpoll.CloseCallback) error
- func (m *MockConnection) Close() error
- func (m *MockConnection) EXPECT() *MockConnectionMockRecorder
- func (m *MockConnection) IsActive() bool
- func (m *MockConnection) LocalAddr() net.Addr
- func (m *MockConnection) Read(b []byte) (int, error)
- func (m *MockConnection) Reader() netpoll.Reader
- func (m *MockConnection) RemoteAddr() net.Addr
- func (m *MockConnection) SetDeadline(t time.Time) error
- func (m *MockConnection) SetIdleTimeout(timeout time.Duration) error
- func (m *MockConnection) SetOnRequest(on netpoll.OnRequest) error
- func (m *MockConnection) SetReadDeadline(t time.Time) error
- func (m *MockConnection) SetReadTimeout(timeout time.Duration) error
- func (m *MockConnection) SetWriteDeadline(t time.Time) error
- func (m *MockConnection) Write(b []byte) (int, error)
- func (m *MockConnection) Writer() netpoll.Writer
- type MockConnectionMockRecorder
- func (mr *MockConnectionMockRecorder) AddCloseCallback(callback interface{}) *gomock.Call
- func (mr *MockConnectionMockRecorder) Close() *gomock.Call
- func (mr *MockConnectionMockRecorder) IsActive() *gomock.Call
- func (mr *MockConnectionMockRecorder) LocalAddr() *gomock.Call
- func (mr *MockConnectionMockRecorder) Read(b interface{}) *gomock.Call
- func (mr *MockConnectionMockRecorder) Reader() *gomock.Call
- func (mr *MockConnectionMockRecorder) RemoteAddr() *gomock.Call
- func (mr *MockConnectionMockRecorder) SetDeadline(t interface{}) *gomock.Call
- func (mr *MockConnectionMockRecorder) SetIdleTimeout(timeout interface{}) *gomock.Call
- func (mr *MockConnectionMockRecorder) SetOnRequest(on interface{}) *gomock.Call
- func (mr *MockConnectionMockRecorder) SetReadDeadline(t interface{}) *gomock.Call
- func (mr *MockConnectionMockRecorder) SetReadTimeout(timeout interface{}) *gomock.Call
- func (mr *MockConnectionMockRecorder) SetWriteDeadline(t interface{}) *gomock.Call
- func (mr *MockConnectionMockRecorder) Write(b interface{}) *gomock.Call
- func (mr *MockConnectionMockRecorder) Writer() *gomock.Call
- type MockDialer
- type MockDialerMockRecorder
- type MockListener
- type MockListenerMockRecorder
- type MockReadWriter
- func (m *MockReadWriter) Append(w netpoll.Writer) error
- func (m *MockReadWriter) EXPECT() *MockReadWriterMockRecorder
- func (m *MockReadWriter) Flush() error
- func (m *MockReadWriter) Len() int
- func (m *MockReadWriter) Malloc(n int) ([]byte, error)
- func (m *MockReadWriter) MallocAck(n int) error
- func (m *MockReadWriter) MallocLen() int
- func (m *MockReadWriter) Next(n int) ([]byte, error)
- func (m *MockReadWriter) Peek(n int) ([]byte, error)
- func (m *MockReadWriter) ReadBinary(n int) ([]byte, error)
- func (m *MockReadWriter) ReadByte() (byte, error)
- func (m *MockReadWriter) ReadString(n int) (string, error)
- func (m *MockReadWriter) Release() error
- func (m *MockReadWriter) Skip(n int) error
- func (m *MockReadWriter) Slice(n int) (netpoll.Reader, error)
- func (m *MockReadWriter) Until(delim byte) ([]byte, error)
- func (m *MockReadWriter) WriteBinary(b []byte) (int, error)
- func (m *MockReadWriter) WriteByte(b byte) error
- func (m *MockReadWriter) WriteDirect(p []byte, remainCap int) error
- func (m *MockReadWriter) WriteString(s string) (int, error)
- type MockReadWriterMockRecorder
- func (mr *MockReadWriterMockRecorder) Append(w interface{}) *gomock.Call
- func (mr *MockReadWriterMockRecorder) Flush() *gomock.Call
- func (mr *MockReadWriterMockRecorder) Len() *gomock.Call
- func (mr *MockReadWriterMockRecorder) Malloc(n interface{}) *gomock.Call
- func (mr *MockReadWriterMockRecorder) MallocAck(n interface{}) *gomock.Call
- func (mr *MockReadWriterMockRecorder) MallocLen() *gomock.Call
- func (mr *MockReadWriterMockRecorder) Next(n interface{}) *gomock.Call
- func (mr *MockReadWriterMockRecorder) Peek(n interface{}) *gomock.Call
- func (mr *MockReadWriterMockRecorder) ReadBinary(n interface{}) *gomock.Call
- func (mr *MockReadWriterMockRecorder) ReadByte() *gomock.Call
- func (mr *MockReadWriterMockRecorder) ReadString(n interface{}) *gomock.Call
- func (mr *MockReadWriterMockRecorder) Release() *gomock.Call
- func (mr *MockReadWriterMockRecorder) Skip(n interface{}) *gomock.Call
- func (mr *MockReadWriterMockRecorder) Slice(n interface{}) *gomock.Call
- func (mr *MockReadWriterMockRecorder) Until(delim interface{}) *gomock.Call
- func (mr *MockReadWriterMockRecorder) WriteBinary(b interface{}) *gomock.Call
- func (mr *MockReadWriterMockRecorder) WriteByte(b interface{}) *gomock.Call
- func (mr *MockReadWriterMockRecorder) WriteDirect(p, remainCap interface{}) *gomock.Call
- func (mr *MockReadWriterMockRecorder) WriteString(s interface{}) *gomock.Call
- type MockReader
- func (m *MockReader) EXPECT() *MockReaderMockRecorder
- func (m *MockReader) Len() int
- func (m *MockReader) Next(n int) ([]byte, error)
- func (m *MockReader) Peek(n int) ([]byte, error)
- func (m *MockReader) ReadBinary(n int) ([]byte, error)
- func (m *MockReader) ReadByte() (byte, error)
- func (m *MockReader) ReadString(n int) (string, error)
- func (m *MockReader) Release() error
- func (m *MockReader) Skip(n int) error
- func (m *MockReader) Slice(n int) (netpoll.Reader, error)
- func (m *MockReader) Until(delim byte) ([]byte, error)
- type MockReaderMockRecorder
- func (mr *MockReaderMockRecorder) Len() *gomock.Call
- func (mr *MockReaderMockRecorder) Next(n interface{}) *gomock.Call
- func (mr *MockReaderMockRecorder) Peek(n interface{}) *gomock.Call
- func (mr *MockReaderMockRecorder) ReadBinary(n interface{}) *gomock.Call
- func (mr *MockReaderMockRecorder) ReadByte() *gomock.Call
- func (mr *MockReaderMockRecorder) ReadString(n interface{}) *gomock.Call
- func (mr *MockReaderMockRecorder) Release() *gomock.Call
- func (mr *MockReaderMockRecorder) Skip(n interface{}) *gomock.Call
- func (mr *MockReaderMockRecorder) Slice(n interface{}) *gomock.Call
- func (mr *MockReaderMockRecorder) Until(delim interface{}) *gomock.Call
- type MockWriter
- func (m *MockWriter) Append(w netpoll.Writer) error
- func (m *MockWriter) EXPECT() *MockWriterMockRecorder
- func (m *MockWriter) Flush() error
- func (m *MockWriter) Malloc(n int) ([]byte, error)
- func (m *MockWriter) MallocAck(n int) error
- func (m *MockWriter) MallocLen() int
- func (m *MockWriter) WriteBinary(b []byte) (int, error)
- func (m *MockWriter) WriteByte(b byte) error
- func (m *MockWriter) WriteDirect(p []byte, remainCap int) error
- func (m *MockWriter) WriteString(s string) (int, error)
- type MockWriterMockRecorder
- func (mr *MockWriterMockRecorder) Append(w interface{}) *gomock.Call
- func (mr *MockWriterMockRecorder) Flush() *gomock.Call
- func (mr *MockWriterMockRecorder) Malloc(n interface{}) *gomock.Call
- func (mr *MockWriterMockRecorder) MallocAck(n interface{}) *gomock.Call
- func (mr *MockWriterMockRecorder) MallocLen() *gomock.Call
- func (mr *MockWriterMockRecorder) WriteBinary(b interface{}) *gomock.Call
- func (mr *MockWriterMockRecorder) WriteByte(b interface{}) *gomock.Call
- func (mr *MockWriterMockRecorder) WriteDirect(p, remainCap interface{}) *gomock.Call
- func (mr *MockWriterMockRecorder) WriteString(s interface{}) *gomock.Call
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
}
MockConn is a mock of Conn interface.
func NewMockConn ¶
func NewMockConn(ctrl *gomock.Controller) *MockConn
NewMockConn creates a new mock instance.
func (*MockConn) EXPECT ¶
func (m *MockConn) EXPECT() *MockConnMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConn) RemoteAddr ¶
RemoteAddr mocks base method.
func (*MockConn) SetDeadline ¶
SetDeadline mocks base method.
func (*MockConn) SetReadDeadline ¶
SetReadDeadline mocks base method.
func (*MockConn) SetWriteDeadline ¶
SetWriteDeadline mocks base method.
type MockConnMockRecorder ¶
type MockConnMockRecorder struct {
// contains filtered or unexported fields
}
MockConnMockRecorder is the mock recorder for MockConn.
func (*MockConnMockRecorder) Close ¶
func (mr *MockConnMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockConnMockRecorder) Fd ¶
func (mr *MockConnMockRecorder) Fd() *gomock.Call
Fd indicates an expected call of Fd.
func (*MockConnMockRecorder) LocalAddr ¶
func (mr *MockConnMockRecorder) LocalAddr() *gomock.Call
LocalAddr indicates an expected call of LocalAddr.
func (*MockConnMockRecorder) Read ¶
func (mr *MockConnMockRecorder) Read(b interface{}) *gomock.Call
Read indicates an expected call of Read.
func (*MockConnMockRecorder) RemoteAddr ¶
func (mr *MockConnMockRecorder) RemoteAddr() *gomock.Call
RemoteAddr indicates an expected call of RemoteAddr.
func (*MockConnMockRecorder) SetDeadline ¶
func (mr *MockConnMockRecorder) SetDeadline(t interface{}) *gomock.Call
SetDeadline indicates an expected call of SetDeadline.
func (*MockConnMockRecorder) SetReadDeadline ¶
func (mr *MockConnMockRecorder) SetReadDeadline(t interface{}) *gomock.Call
SetReadDeadline indicates an expected call of SetReadDeadline.
func (*MockConnMockRecorder) SetWriteDeadline ¶
func (mr *MockConnMockRecorder) SetWriteDeadline(t interface{}) *gomock.Call
SetWriteDeadline indicates an expected call of SetWriteDeadline.
func (*MockConnMockRecorder) Write ¶
func (mr *MockConnMockRecorder) Write(b interface{}) *gomock.Call
Write indicates an expected call of Write.
type MockConnection ¶
type MockConnection struct {
// contains filtered or unexported fields
}
MockConnection is a mock of Connection interface.
func NewMockConnection ¶
func NewMockConnection(ctrl *gomock.Controller) *MockConnection
NewMockConnection creates a new mock instance.
func (*MockConnection) AddCloseCallback ¶
func (m *MockConnection) AddCloseCallback(callback netpoll.CloseCallback) error
AddCloseCallback mocks base method.
func (*MockConnection) EXPECT ¶
func (m *MockConnection) EXPECT() *MockConnectionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockConnection) IsActive ¶
func (m *MockConnection) IsActive() bool
IsActive mocks base method.
func (*MockConnection) LocalAddr ¶
func (m *MockConnection) LocalAddr() net.Addr
LocalAddr mocks base method.
func (*MockConnection) Read ¶
func (m *MockConnection) Read(b []byte) (int, error)
Read mocks base method.
func (*MockConnection) Reader ¶
func (m *MockConnection) Reader() netpoll.Reader
Reader mocks base method.
func (*MockConnection) RemoteAddr ¶
func (m *MockConnection) RemoteAddr() net.Addr
RemoteAddr mocks base method.
func (*MockConnection) SetDeadline ¶
func (m *MockConnection) SetDeadline(t time.Time) error
SetDeadline mocks base method.
func (*MockConnection) SetIdleTimeout ¶
func (m *MockConnection) SetIdleTimeout(timeout time.Duration) error
SetIdleTimeout mocks base method.
func (*MockConnection) SetOnRequest ¶
func (m *MockConnection) SetOnRequest(on netpoll.OnRequest) error
SetOnRequest mocks base method.
func (*MockConnection) SetReadDeadline ¶
func (m *MockConnection) SetReadDeadline(t time.Time) error
SetReadDeadline mocks base method.
func (*MockConnection) SetReadTimeout ¶
func (m *MockConnection) SetReadTimeout(timeout time.Duration) error
SetReadTimeout mocks base method.
func (*MockConnection) SetWriteDeadline ¶
func (m *MockConnection) SetWriteDeadline(t time.Time) error
SetWriteDeadline mocks base method.
func (*MockConnection) Write ¶
func (m *MockConnection) Write(b []byte) (int, error)
Write mocks base method.
func (*MockConnection) Writer ¶
func (m *MockConnection) Writer() netpoll.Writer
Writer mocks base method.
type MockConnectionMockRecorder ¶
type MockConnectionMockRecorder struct {
// contains filtered or unexported fields
}
MockConnectionMockRecorder is the mock recorder for MockConnection.
func (*MockConnectionMockRecorder) AddCloseCallback ¶
func (mr *MockConnectionMockRecorder) AddCloseCallback(callback interface{}) *gomock.Call
AddCloseCallback indicates an expected call of AddCloseCallback.
func (*MockConnectionMockRecorder) Close ¶
func (mr *MockConnectionMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockConnectionMockRecorder) IsActive ¶
func (mr *MockConnectionMockRecorder) IsActive() *gomock.Call
IsActive indicates an expected call of IsActive.
func (*MockConnectionMockRecorder) LocalAddr ¶
func (mr *MockConnectionMockRecorder) LocalAddr() *gomock.Call
LocalAddr indicates an expected call of LocalAddr.
func (*MockConnectionMockRecorder) Read ¶
func (mr *MockConnectionMockRecorder) Read(b interface{}) *gomock.Call
Read indicates an expected call of Read.
func (*MockConnectionMockRecorder) Reader ¶
func (mr *MockConnectionMockRecorder) Reader() *gomock.Call
Reader indicates an expected call of Reader.
func (*MockConnectionMockRecorder) RemoteAddr ¶
func (mr *MockConnectionMockRecorder) RemoteAddr() *gomock.Call
RemoteAddr indicates an expected call of RemoteAddr.
func (*MockConnectionMockRecorder) SetDeadline ¶
func (mr *MockConnectionMockRecorder) SetDeadline(t interface{}) *gomock.Call
SetDeadline indicates an expected call of SetDeadline.
func (*MockConnectionMockRecorder) SetIdleTimeout ¶
func (mr *MockConnectionMockRecorder) SetIdleTimeout(timeout interface{}) *gomock.Call
SetIdleTimeout indicates an expected call of SetIdleTimeout.
func (*MockConnectionMockRecorder) SetOnRequest ¶
func (mr *MockConnectionMockRecorder) SetOnRequest(on interface{}) *gomock.Call
SetOnRequest indicates an expected call of SetOnRequest.
func (*MockConnectionMockRecorder) SetReadDeadline ¶
func (mr *MockConnectionMockRecorder) SetReadDeadline(t interface{}) *gomock.Call
SetReadDeadline indicates an expected call of SetReadDeadline.
func (*MockConnectionMockRecorder) SetReadTimeout ¶
func (mr *MockConnectionMockRecorder) SetReadTimeout(timeout interface{}) *gomock.Call
SetReadTimeout indicates an expected call of SetReadTimeout.
func (*MockConnectionMockRecorder) SetWriteDeadline ¶
func (mr *MockConnectionMockRecorder) SetWriteDeadline(t interface{}) *gomock.Call
SetWriteDeadline indicates an expected call of SetWriteDeadline.
func (*MockConnectionMockRecorder) Write ¶
func (mr *MockConnectionMockRecorder) Write(b interface{}) *gomock.Call
Write indicates an expected call of Write.
func (*MockConnectionMockRecorder) Writer ¶
func (mr *MockConnectionMockRecorder) Writer() *gomock.Call
Writer indicates an expected call of Writer.
type MockDialer ¶
type MockDialer struct {
// contains filtered or unexported fields
}
MockDialer is a mock of Dialer interface.
func NewMockDialer ¶
func NewMockDialer(ctrl *gomock.Controller) *MockDialer
NewMockDialer creates a new mock instance.
func (*MockDialer) DialConnection ¶
func (m *MockDialer) DialConnection(network, address string, timeout time.Duration) (netpoll.Connection, error)
DialConnection mocks base method.
func (*MockDialer) DialTimeout ¶
DialTimeout mocks base method.
func (*MockDialer) EXPECT ¶
func (m *MockDialer) EXPECT() *MockDialerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockDialerMockRecorder ¶
type MockDialerMockRecorder struct {
// contains filtered or unexported fields
}
MockDialerMockRecorder is the mock recorder for MockDialer.
func (*MockDialerMockRecorder) DialConnection ¶
func (mr *MockDialerMockRecorder) DialConnection(network, address, timeout interface{}) *gomock.Call
DialConnection indicates an expected call of DialConnection.
func (*MockDialerMockRecorder) DialTimeout ¶
func (mr *MockDialerMockRecorder) DialTimeout(network, address, timeout interface{}) *gomock.Call
DialTimeout indicates an expected call of DialTimeout.
type MockListener ¶
type MockListener struct {
// contains filtered or unexported fields
}
MockListener is a mock of Listener interface.
func NewMockListener ¶
func NewMockListener(ctrl *gomock.Controller) *MockListener
NewMockListener creates a new mock instance.
func (*MockListener) Accept ¶
func (m *MockListener) Accept() (net.Conn, error)
Accept mocks base method.
func (*MockListener) EXPECT ¶
func (m *MockListener) EXPECT() *MockListenerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockListenerMockRecorder ¶
type MockListenerMockRecorder struct {
// contains filtered or unexported fields
}
MockListenerMockRecorder is the mock recorder for MockListener.
func (*MockListenerMockRecorder) Accept ¶
func (mr *MockListenerMockRecorder) Accept() *gomock.Call
Accept indicates an expected call of Accept.
func (*MockListenerMockRecorder) Addr ¶
func (mr *MockListenerMockRecorder) Addr() *gomock.Call
Addr indicates an expected call of Addr.
func (*MockListenerMockRecorder) Close ¶
func (mr *MockListenerMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockListenerMockRecorder) Fd ¶
func (mr *MockListenerMockRecorder) Fd() *gomock.Call
Fd indicates an expected call of Fd.
type MockReadWriter ¶
type MockReadWriter struct {
// contains filtered or unexported fields
}
MockReadWriter is a mock of ReadWriter interface.
func NewMockReadWriter ¶
func NewMockReadWriter(ctrl *gomock.Controller) *MockReadWriter
NewMockReadWriter creates a new mock instance.
func (*MockReadWriter) Append ¶
func (m *MockReadWriter) Append(w netpoll.Writer) error
Append mocks base method.
func (*MockReadWriter) EXPECT ¶
func (m *MockReadWriter) EXPECT() *MockReadWriterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockReadWriter) Malloc ¶
func (m *MockReadWriter) Malloc(n int) ([]byte, error)
Malloc mocks base method.
func (*MockReadWriter) MallocAck ¶
func (m *MockReadWriter) MallocAck(n int) error
MallocAck mocks base method.
func (*MockReadWriter) MallocLen ¶
func (m *MockReadWriter) MallocLen() int
MallocLen mocks base method.
func (*MockReadWriter) Next ¶
func (m *MockReadWriter) Next(n int) ([]byte, error)
Next mocks base method.
func (*MockReadWriter) Peek ¶
func (m *MockReadWriter) Peek(n int) ([]byte, error)
Peek mocks base method.
func (*MockReadWriter) ReadBinary ¶
func (m *MockReadWriter) ReadBinary(n int) ([]byte, error)
ReadBinary mocks base method.
func (*MockReadWriter) ReadByte ¶
func (m *MockReadWriter) ReadByte() (byte, error)
ReadByte mocks base method.
func (*MockReadWriter) ReadString ¶
func (m *MockReadWriter) ReadString(n int) (string, error)
ReadString mocks base method.
func (*MockReadWriter) Release ¶
func (m *MockReadWriter) Release() error
Release mocks base method.
func (*MockReadWriter) Slice ¶
func (m *MockReadWriter) Slice(n int) (netpoll.Reader, error)
Slice mocks base method.
func (*MockReadWriter) Until ¶
func (m *MockReadWriter) Until(delim byte) ([]byte, error)
Until mocks base method.
func (*MockReadWriter) WriteBinary ¶
func (m *MockReadWriter) WriteBinary(b []byte) (int, error)
WriteBinary mocks base method.
func (*MockReadWriter) WriteByte ¶
func (m *MockReadWriter) WriteByte(b byte) error
WriteByte mocks base method.
func (*MockReadWriter) WriteDirect ¶
func (m *MockReadWriter) WriteDirect(p []byte, remainCap int) error
WriteDirect mocks base method.
func (*MockReadWriter) WriteString ¶
func (m *MockReadWriter) WriteString(s string) (int, error)
WriteString mocks base method.
type MockReadWriterMockRecorder ¶
type MockReadWriterMockRecorder struct {
// contains filtered or unexported fields
}
MockReadWriterMockRecorder is the mock recorder for MockReadWriter.
func (*MockReadWriterMockRecorder) Append ¶
func (mr *MockReadWriterMockRecorder) Append(w interface{}) *gomock.Call
Append indicates an expected call of Append.
func (*MockReadWriterMockRecorder) Flush ¶
func (mr *MockReadWriterMockRecorder) Flush() *gomock.Call
Flush indicates an expected call of Flush.
func (*MockReadWriterMockRecorder) Len ¶
func (mr *MockReadWriterMockRecorder) Len() *gomock.Call
Len indicates an expected call of Len.
func (*MockReadWriterMockRecorder) Malloc ¶
func (mr *MockReadWriterMockRecorder) Malloc(n interface{}) *gomock.Call
Malloc indicates an expected call of Malloc.
func (*MockReadWriterMockRecorder) MallocAck ¶
func (mr *MockReadWriterMockRecorder) MallocAck(n interface{}) *gomock.Call
MallocAck indicates an expected call of MallocAck.
func (*MockReadWriterMockRecorder) MallocLen ¶
func (mr *MockReadWriterMockRecorder) MallocLen() *gomock.Call
MallocLen indicates an expected call of MallocLen.
func (*MockReadWriterMockRecorder) Next ¶
func (mr *MockReadWriterMockRecorder) Next(n interface{}) *gomock.Call
Next indicates an expected call of Next.
func (*MockReadWriterMockRecorder) Peek ¶
func (mr *MockReadWriterMockRecorder) Peek(n interface{}) *gomock.Call
Peek indicates an expected call of Peek.
func (*MockReadWriterMockRecorder) ReadBinary ¶
func (mr *MockReadWriterMockRecorder) ReadBinary(n interface{}) *gomock.Call
ReadBinary indicates an expected call of ReadBinary.
func (*MockReadWriterMockRecorder) ReadByte ¶
func (mr *MockReadWriterMockRecorder) ReadByte() *gomock.Call
ReadByte indicates an expected call of ReadByte.
func (*MockReadWriterMockRecorder) ReadString ¶
func (mr *MockReadWriterMockRecorder) ReadString(n interface{}) *gomock.Call
ReadString indicates an expected call of ReadString.
func (*MockReadWriterMockRecorder) Release ¶
func (mr *MockReadWriterMockRecorder) Release() *gomock.Call
Release indicates an expected call of Release.
func (*MockReadWriterMockRecorder) Skip ¶
func (mr *MockReadWriterMockRecorder) Skip(n interface{}) *gomock.Call
Skip indicates an expected call of Skip.
func (*MockReadWriterMockRecorder) Slice ¶
func (mr *MockReadWriterMockRecorder) Slice(n interface{}) *gomock.Call
Slice indicates an expected call of Slice.
func (*MockReadWriterMockRecorder) Until ¶
func (mr *MockReadWriterMockRecorder) Until(delim interface{}) *gomock.Call
Until indicates an expected call of Until.
func (*MockReadWriterMockRecorder) WriteBinary ¶
func (mr *MockReadWriterMockRecorder) WriteBinary(b interface{}) *gomock.Call
WriteBinary indicates an expected call of WriteBinary.
func (*MockReadWriterMockRecorder) WriteByte ¶
func (mr *MockReadWriterMockRecorder) WriteByte(b interface{}) *gomock.Call
WriteByte indicates an expected call of WriteByte.
func (*MockReadWriterMockRecorder) WriteDirect ¶
func (mr *MockReadWriterMockRecorder) WriteDirect(p, remainCap interface{}) *gomock.Call
WriteDirect indicates an expected call of WriteDirect.
func (*MockReadWriterMockRecorder) WriteString ¶
func (mr *MockReadWriterMockRecorder) WriteString(s interface{}) *gomock.Call
WriteString indicates an expected call of WriteString.
type MockReader ¶
type MockReader struct {
// contains filtered or unexported fields
}
MockReader is a mock of Reader interface.
func NewMockReader ¶
func NewMockReader(ctrl *gomock.Controller) *MockReader
NewMockReader creates a new mock instance.
func (*MockReader) EXPECT ¶
func (m *MockReader) EXPECT() *MockReaderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockReader) ReadBinary ¶
func (m *MockReader) ReadBinary(n int) ([]byte, error)
ReadBinary mocks base method.
func (*MockReader) ReadByte ¶
func (m *MockReader) ReadByte() (byte, error)
ReadByte mocks base method.
func (*MockReader) ReadString ¶
func (m *MockReader) ReadString(n int) (string, error)
ReadString mocks base method.
type MockReaderMockRecorder ¶
type MockReaderMockRecorder struct {
// contains filtered or unexported fields
}
MockReaderMockRecorder is the mock recorder for MockReader.
func (*MockReaderMockRecorder) Len ¶
func (mr *MockReaderMockRecorder) Len() *gomock.Call
Len indicates an expected call of Len.
func (*MockReaderMockRecorder) Next ¶
func (mr *MockReaderMockRecorder) Next(n interface{}) *gomock.Call
Next indicates an expected call of Next.
func (*MockReaderMockRecorder) Peek ¶
func (mr *MockReaderMockRecorder) Peek(n interface{}) *gomock.Call
Peek indicates an expected call of Peek.
func (*MockReaderMockRecorder) ReadBinary ¶
func (mr *MockReaderMockRecorder) ReadBinary(n interface{}) *gomock.Call
ReadBinary indicates an expected call of ReadBinary.
func (*MockReaderMockRecorder) ReadByte ¶
func (mr *MockReaderMockRecorder) ReadByte() *gomock.Call
ReadByte indicates an expected call of ReadByte.
func (*MockReaderMockRecorder) ReadString ¶
func (mr *MockReaderMockRecorder) ReadString(n interface{}) *gomock.Call
ReadString indicates an expected call of ReadString.
func (*MockReaderMockRecorder) Release ¶
func (mr *MockReaderMockRecorder) Release() *gomock.Call
Release indicates an expected call of Release.
func (*MockReaderMockRecorder) Skip ¶
func (mr *MockReaderMockRecorder) Skip(n interface{}) *gomock.Call
Skip indicates an expected call of Skip.
func (*MockReaderMockRecorder) Slice ¶
func (mr *MockReaderMockRecorder) Slice(n interface{}) *gomock.Call
Slice indicates an expected call of Slice.
func (*MockReaderMockRecorder) Until ¶
func (mr *MockReaderMockRecorder) Until(delim interface{}) *gomock.Call
Until indicates an expected call of Until.
type MockWriter ¶
type MockWriter struct {
// contains filtered or unexported fields
}
MockWriter is a mock of Writer interface.
func NewMockWriter ¶
func NewMockWriter(ctrl *gomock.Controller) *MockWriter
NewMockWriter creates a new mock instance.
func (*MockWriter) Append ¶
func (m *MockWriter) Append(w netpoll.Writer) error
Append mocks base method.
func (*MockWriter) EXPECT ¶
func (m *MockWriter) EXPECT() *MockWriterMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockWriter) Malloc ¶
func (m *MockWriter) Malloc(n int) ([]byte, error)
Malloc mocks base method.
func (*MockWriter) MallocAck ¶
func (m *MockWriter) MallocAck(n int) error
MallocAck mocks base method.
func (*MockWriter) WriteBinary ¶
func (m *MockWriter) WriteBinary(b []byte) (int, error)
WriteBinary mocks base method.
func (*MockWriter) WriteByte ¶
func (m *MockWriter) WriteByte(b byte) error
WriteByte mocks base method.
func (*MockWriter) WriteDirect ¶
func (m *MockWriter) WriteDirect(p []byte, remainCap int) error
WriteDirect mocks base method.
func (*MockWriter) WriteString ¶
func (m *MockWriter) WriteString(s string) (int, error)
WriteString mocks base method.
type MockWriterMockRecorder ¶
type MockWriterMockRecorder struct {
// contains filtered or unexported fields
}
MockWriterMockRecorder is the mock recorder for MockWriter.
func (*MockWriterMockRecorder) Append ¶
func (mr *MockWriterMockRecorder) Append(w interface{}) *gomock.Call
Append indicates an expected call of Append.
func (*MockWriterMockRecorder) Flush ¶
func (mr *MockWriterMockRecorder) Flush() *gomock.Call
Flush indicates an expected call of Flush.
func (*MockWriterMockRecorder) Malloc ¶
func (mr *MockWriterMockRecorder) Malloc(n interface{}) *gomock.Call
Malloc indicates an expected call of Malloc.
func (*MockWriterMockRecorder) MallocAck ¶
func (mr *MockWriterMockRecorder) MallocAck(n interface{}) *gomock.Call
MallocAck indicates an expected call of MallocAck.
func (*MockWriterMockRecorder) MallocLen ¶
func (mr *MockWriterMockRecorder) MallocLen() *gomock.Call
MallocLen indicates an expected call of MallocLen.
func (*MockWriterMockRecorder) WriteBinary ¶
func (mr *MockWriterMockRecorder) WriteBinary(b interface{}) *gomock.Call
WriteBinary indicates an expected call of WriteBinary.
func (*MockWriterMockRecorder) WriteByte ¶
func (mr *MockWriterMockRecorder) WriteByte(b interface{}) *gomock.Call
WriteByte indicates an expected call of WriteByte.
func (*MockWriterMockRecorder) WriteDirect ¶
func (mr *MockWriterMockRecorder) WriteDirect(p, remainCap interface{}) *gomock.Call
WriteDirect indicates an expected call of WriteDirect.
func (*MockWriterMockRecorder) WriteString ¶
func (mr *MockWriterMockRecorder) WriteString(s interface{}) *gomock.Call
WriteString indicates an expected call of WriteString.