Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: github.com/quic-go/quic-go (interfaces: EarlyConnection)
Generated by this command:
mockgen -build_flags=-tags=gomock -package mockquic -destination quic/early_conn_tmp.go github.com/quic-go/quic-go EarlyConnection
Package mockquic is a generated GoMock package.
Code generated by MockGen. DO NOT EDIT. Source: github.com/quic-go/quic-go (interfaces: Stream)
Generated by this command:
mockgen -build_flags=-tags=gomock -package mockquic -destination quic/stream.go github.com/quic-go/quic-go Stream
Package mockquic is a generated GoMock package.
Index ¶
- type MockEarlyConnection
- func (m *MockEarlyConnection) AcceptStream(arg0 context.Context) (quic.Stream, error)
- func (m *MockEarlyConnection) AcceptUniStream(arg0 context.Context) (quic.ReceiveStream, error)
- func (m *MockEarlyConnection) CloseWithError(arg0 qerr.ApplicationErrorCode, arg1 string) error
- func (m *MockEarlyConnection) ConnectionState() quic.ConnectionState
- func (m *MockEarlyConnection) Context() context.Context
- func (m *MockEarlyConnection) EXPECT() *MockEarlyConnectionMockRecorder
- func (m *MockEarlyConnection) HandshakeComplete() <-chan struct{}
- func (m *MockEarlyConnection) LocalAddr() net.Addr
- func (m *MockEarlyConnection) NextConnection() quic.Connection
- func (m *MockEarlyConnection) OpenStream() (quic.Stream, error)
- func (m *MockEarlyConnection) OpenStreamSync(arg0 context.Context) (quic.Stream, error)
- func (m *MockEarlyConnection) OpenUniStream() (quic.SendStream, error)
- func (m *MockEarlyConnection) OpenUniStreamSync(arg0 context.Context) (quic.SendStream, error)
- func (m *MockEarlyConnection) ReceiveMessage(arg0 context.Context) ([]byte, error)
- func (m *MockEarlyConnection) RemoteAddr() net.Addr
- func (m *MockEarlyConnection) SendMessage(arg0 []byte) error
- type MockEarlyConnectionMockRecorder
- func (mr *MockEarlyConnectionMockRecorder) AcceptStream(arg0 any) *gomock.Call
- func (mr *MockEarlyConnectionMockRecorder) AcceptUniStream(arg0 any) *gomock.Call
- func (mr *MockEarlyConnectionMockRecorder) CloseWithError(arg0, arg1 any) *gomock.Call
- func (mr *MockEarlyConnectionMockRecorder) ConnectionState() *gomock.Call
- func (mr *MockEarlyConnectionMockRecorder) Context() *gomock.Call
- func (mr *MockEarlyConnectionMockRecorder) HandshakeComplete() *gomock.Call
- func (mr *MockEarlyConnectionMockRecorder) LocalAddr() *gomock.Call
- func (mr *MockEarlyConnectionMockRecorder) NextConnection() *gomock.Call
- func (mr *MockEarlyConnectionMockRecorder) OpenStream() *gomock.Call
- func (mr *MockEarlyConnectionMockRecorder) OpenStreamSync(arg0 any) *gomock.Call
- func (mr *MockEarlyConnectionMockRecorder) OpenUniStream() *gomock.Call
- func (mr *MockEarlyConnectionMockRecorder) OpenUniStreamSync(arg0 any) *gomock.Call
- func (mr *MockEarlyConnectionMockRecorder) ReceiveMessage(arg0 any) *gomock.Call
- func (mr *MockEarlyConnectionMockRecorder) RemoteAddr() *gomock.Call
- func (mr *MockEarlyConnectionMockRecorder) SendMessage(arg0 any) *gomock.Call
- type MockStream
- func (m *MockStream) CancelRead(arg0 qerr.StreamErrorCode)
- func (m *MockStream) CancelWrite(arg0 qerr.StreamErrorCode)
- func (m *MockStream) Close() error
- func (m *MockStream) Context() context.Context
- func (m *MockStream) EXPECT() *MockStreamMockRecorder
- func (m *MockStream) Read(arg0 []byte) (int, error)
- func (m *MockStream) SetDeadline(arg0 time.Time) error
- func (m *MockStream) SetReadDeadline(arg0 time.Time) error
- func (m *MockStream) SetWriteDeadline(arg0 time.Time) error
- func (m *MockStream) StreamID() protocol.StreamID
- func (m *MockStream) Write(arg0 []byte) (int, error)
- type MockStreamMockRecorder
- func (mr *MockStreamMockRecorder) CancelRead(arg0 any) *gomock.Call
- func (mr *MockStreamMockRecorder) CancelWrite(arg0 any) *gomock.Call
- func (mr *MockStreamMockRecorder) Close() *gomock.Call
- func (mr *MockStreamMockRecorder) Context() *gomock.Call
- func (mr *MockStreamMockRecorder) Read(arg0 any) *gomock.Call
- func (mr *MockStreamMockRecorder) SetDeadline(arg0 any) *gomock.Call
- func (mr *MockStreamMockRecorder) SetReadDeadline(arg0 any) *gomock.Call
- func (mr *MockStreamMockRecorder) SetWriteDeadline(arg0 any) *gomock.Call
- func (mr *MockStreamMockRecorder) StreamID() *gomock.Call
- func (mr *MockStreamMockRecorder) Write(arg0 any) *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockEarlyConnection ¶
type MockEarlyConnection struct {
// contains filtered or unexported fields
}
MockEarlyConnection is a mock of EarlyConnection interface.
func NewMockEarlyConnection ¶
func NewMockEarlyConnection(ctrl *gomock.Controller) *MockEarlyConnection
NewMockEarlyConnection creates a new mock instance.
func (*MockEarlyConnection) AcceptStream ¶
AcceptStream mocks base method.
func (*MockEarlyConnection) AcceptUniStream ¶
func (m *MockEarlyConnection) AcceptUniStream(arg0 context.Context) (quic.ReceiveStream, error)
AcceptUniStream mocks base method.
func (*MockEarlyConnection) CloseWithError ¶
func (m *MockEarlyConnection) CloseWithError(arg0 qerr.ApplicationErrorCode, arg1 string) error
CloseWithError mocks base method.
func (*MockEarlyConnection) ConnectionState ¶
func (m *MockEarlyConnection) ConnectionState() quic.ConnectionState
ConnectionState mocks base method.
func (*MockEarlyConnection) Context ¶
func (m *MockEarlyConnection) Context() context.Context
Context mocks base method.
func (*MockEarlyConnection) EXPECT ¶
func (m *MockEarlyConnection) EXPECT() *MockEarlyConnectionMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockEarlyConnection) HandshakeComplete ¶
func (m *MockEarlyConnection) HandshakeComplete() <-chan struct{}
HandshakeComplete mocks base method.
func (*MockEarlyConnection) LocalAddr ¶
func (m *MockEarlyConnection) LocalAddr() net.Addr
LocalAddr mocks base method.
func (*MockEarlyConnection) NextConnection ¶
func (m *MockEarlyConnection) NextConnection() quic.Connection
NextConnection mocks base method.
func (*MockEarlyConnection) OpenStream ¶
func (m *MockEarlyConnection) OpenStream() (quic.Stream, error)
OpenStream mocks base method.
func (*MockEarlyConnection) OpenStreamSync ¶
OpenStreamSync mocks base method.
func (*MockEarlyConnection) OpenUniStream ¶
func (m *MockEarlyConnection) OpenUniStream() (quic.SendStream, error)
OpenUniStream mocks base method.
func (*MockEarlyConnection) OpenUniStreamSync ¶
func (m *MockEarlyConnection) OpenUniStreamSync(arg0 context.Context) (quic.SendStream, error)
OpenUniStreamSync mocks base method.
func (*MockEarlyConnection) ReceiveMessage ¶
func (m *MockEarlyConnection) ReceiveMessage(arg0 context.Context) ([]byte, error)
ReceiveMessage mocks base method.
func (*MockEarlyConnection) RemoteAddr ¶
func (m *MockEarlyConnection) RemoteAddr() net.Addr
RemoteAddr mocks base method.
func (*MockEarlyConnection) SendMessage ¶
func (m *MockEarlyConnection) SendMessage(arg0 []byte) error
SendMessage mocks base method.
type MockEarlyConnectionMockRecorder ¶
type MockEarlyConnectionMockRecorder struct {
// contains filtered or unexported fields
}
MockEarlyConnectionMockRecorder is the mock recorder for MockEarlyConnection.
func (*MockEarlyConnectionMockRecorder) AcceptStream ¶
func (mr *MockEarlyConnectionMockRecorder) AcceptStream(arg0 any) *gomock.Call
AcceptStream indicates an expected call of AcceptStream.
func (*MockEarlyConnectionMockRecorder) AcceptUniStream ¶
func (mr *MockEarlyConnectionMockRecorder) AcceptUniStream(arg0 any) *gomock.Call
AcceptUniStream indicates an expected call of AcceptUniStream.
func (*MockEarlyConnectionMockRecorder) CloseWithError ¶
func (mr *MockEarlyConnectionMockRecorder) CloseWithError(arg0, arg1 any) *gomock.Call
CloseWithError indicates an expected call of CloseWithError.
func (*MockEarlyConnectionMockRecorder) ConnectionState ¶
func (mr *MockEarlyConnectionMockRecorder) ConnectionState() *gomock.Call
ConnectionState indicates an expected call of ConnectionState.
func (*MockEarlyConnectionMockRecorder) Context ¶
func (mr *MockEarlyConnectionMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context.
func (*MockEarlyConnectionMockRecorder) HandshakeComplete ¶
func (mr *MockEarlyConnectionMockRecorder) HandshakeComplete() *gomock.Call
HandshakeComplete indicates an expected call of HandshakeComplete.
func (*MockEarlyConnectionMockRecorder) LocalAddr ¶
func (mr *MockEarlyConnectionMockRecorder) LocalAddr() *gomock.Call
LocalAddr indicates an expected call of LocalAddr.
func (*MockEarlyConnectionMockRecorder) NextConnection ¶
func (mr *MockEarlyConnectionMockRecorder) NextConnection() *gomock.Call
NextConnection indicates an expected call of NextConnection.
func (*MockEarlyConnectionMockRecorder) OpenStream ¶
func (mr *MockEarlyConnectionMockRecorder) OpenStream() *gomock.Call
OpenStream indicates an expected call of OpenStream.
func (*MockEarlyConnectionMockRecorder) OpenStreamSync ¶
func (mr *MockEarlyConnectionMockRecorder) OpenStreamSync(arg0 any) *gomock.Call
OpenStreamSync indicates an expected call of OpenStreamSync.
func (*MockEarlyConnectionMockRecorder) OpenUniStream ¶
func (mr *MockEarlyConnectionMockRecorder) OpenUniStream() *gomock.Call
OpenUniStream indicates an expected call of OpenUniStream.
func (*MockEarlyConnectionMockRecorder) OpenUniStreamSync ¶
func (mr *MockEarlyConnectionMockRecorder) OpenUniStreamSync(arg0 any) *gomock.Call
OpenUniStreamSync indicates an expected call of OpenUniStreamSync.
func (*MockEarlyConnectionMockRecorder) ReceiveMessage ¶
func (mr *MockEarlyConnectionMockRecorder) ReceiveMessage(arg0 any) *gomock.Call
ReceiveMessage indicates an expected call of ReceiveMessage.
func (*MockEarlyConnectionMockRecorder) RemoteAddr ¶
func (mr *MockEarlyConnectionMockRecorder) RemoteAddr() *gomock.Call
RemoteAddr indicates an expected call of RemoteAddr.
func (*MockEarlyConnectionMockRecorder) SendMessage ¶
func (mr *MockEarlyConnectionMockRecorder) SendMessage(arg0 any) *gomock.Call
SendMessage indicates an expected call of SendMessage.
type MockStream ¶
type MockStream struct {
// contains filtered or unexported fields
}
MockStream is a mock of Stream interface.
func NewMockStream ¶
func NewMockStream(ctrl *gomock.Controller) *MockStream
NewMockStream creates a new mock instance.
func (*MockStream) CancelRead ¶
func (m *MockStream) CancelRead(arg0 qerr.StreamErrorCode)
CancelRead mocks base method.
func (*MockStream) CancelWrite ¶
func (m *MockStream) CancelWrite(arg0 qerr.StreamErrorCode)
CancelWrite mocks base method.
func (*MockStream) Context ¶
func (m *MockStream) Context() context.Context
Context mocks base method.
func (*MockStream) EXPECT ¶
func (m *MockStream) EXPECT() *MockStreamMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockStream) Read ¶
func (m *MockStream) Read(arg0 []byte) (int, error)
Read mocks base method.
func (*MockStream) SetDeadline ¶
func (m *MockStream) SetDeadline(arg0 time.Time) error
SetDeadline mocks base method.
func (*MockStream) SetReadDeadline ¶
func (m *MockStream) SetReadDeadline(arg0 time.Time) error
SetReadDeadline mocks base method.
func (*MockStream) SetWriteDeadline ¶
func (m *MockStream) SetWriteDeadline(arg0 time.Time) error
SetWriteDeadline mocks base method.
func (*MockStream) StreamID ¶
func (m *MockStream) StreamID() protocol.StreamID
StreamID mocks base method.
type MockStreamMockRecorder ¶
type MockStreamMockRecorder struct {
// contains filtered or unexported fields
}
MockStreamMockRecorder is the mock recorder for MockStream.
func (*MockStreamMockRecorder) CancelRead ¶
func (mr *MockStreamMockRecorder) CancelRead(arg0 any) *gomock.Call
CancelRead indicates an expected call of CancelRead.
func (*MockStreamMockRecorder) CancelWrite ¶
func (mr *MockStreamMockRecorder) CancelWrite(arg0 any) *gomock.Call
CancelWrite indicates an expected call of CancelWrite.
func (*MockStreamMockRecorder) Close ¶
func (mr *MockStreamMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockStreamMockRecorder) Context ¶
func (mr *MockStreamMockRecorder) Context() *gomock.Call
Context indicates an expected call of Context.
func (*MockStreamMockRecorder) Read ¶
func (mr *MockStreamMockRecorder) Read(arg0 any) *gomock.Call
Read indicates an expected call of Read.
func (*MockStreamMockRecorder) SetDeadline ¶
func (mr *MockStreamMockRecorder) SetDeadline(arg0 any) *gomock.Call
SetDeadline indicates an expected call of SetDeadline.
func (*MockStreamMockRecorder) SetReadDeadline ¶
func (mr *MockStreamMockRecorder) SetReadDeadline(arg0 any) *gomock.Call
SetReadDeadline indicates an expected call of SetReadDeadline.
func (*MockStreamMockRecorder) SetWriteDeadline ¶
func (mr *MockStreamMockRecorder) SetWriteDeadline(arg0 any) *gomock.Call
SetWriteDeadline indicates an expected call of SetWriteDeadline.
func (*MockStreamMockRecorder) StreamID ¶
func (mr *MockStreamMockRecorder) StreamID() *gomock.Call
StreamID indicates an expected call of StreamID.