Documentation ¶
Overview ¶
Code generated by MockGen. DO NOT EDIT. Source: github.com/quic-go/quic-go (interfaces: EarlyConnection)
Generated by this command:
mockgen -typed -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 -typed -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 EarlyConnectionAcceptStreamCall
- func (c *EarlyConnectionAcceptStreamCall) Do(f func(context.Context) (quic.Stream, error)) *EarlyConnectionAcceptStreamCall
- func (c *EarlyConnectionAcceptStreamCall) DoAndReturn(f func(context.Context) (quic.Stream, error)) *EarlyConnectionAcceptStreamCall
- func (c *EarlyConnectionAcceptStreamCall) Return(arg0 quic.Stream, arg1 error) *EarlyConnectionAcceptStreamCall
- type EarlyConnectionAcceptUniStreamCall
- func (c *EarlyConnectionAcceptUniStreamCall) Do(f func(context.Context) (quic.ReceiveStream, error)) *EarlyConnectionAcceptUniStreamCall
- func (c *EarlyConnectionAcceptUniStreamCall) DoAndReturn(f func(context.Context) (quic.ReceiveStream, error)) *EarlyConnectionAcceptUniStreamCall
- func (c *EarlyConnectionAcceptUniStreamCall) Return(arg0 quic.ReceiveStream, arg1 error) *EarlyConnectionAcceptUniStreamCall
- type EarlyConnectionCloseWithErrorCall
- func (c *EarlyConnectionCloseWithErrorCall) Do(f func(qerr.ApplicationErrorCode, string) error) *EarlyConnectionCloseWithErrorCall
- func (c *EarlyConnectionCloseWithErrorCall) DoAndReturn(f func(qerr.ApplicationErrorCode, string) error) *EarlyConnectionCloseWithErrorCall
- func (c *EarlyConnectionCloseWithErrorCall) Return(arg0 error) *EarlyConnectionCloseWithErrorCall
- type EarlyConnectionConnectionStateCall
- func (c *EarlyConnectionConnectionStateCall) Do(f func() quic.ConnectionState) *EarlyConnectionConnectionStateCall
- func (c *EarlyConnectionConnectionStateCall) DoAndReturn(f func() quic.ConnectionState) *EarlyConnectionConnectionStateCall
- func (c *EarlyConnectionConnectionStateCall) Return(arg0 quic.ConnectionState) *EarlyConnectionConnectionStateCall
- type EarlyConnectionContextCall
- type EarlyConnectionHandshakeCompleteCall
- func (c *EarlyConnectionHandshakeCompleteCall) Do(f func() <-chan struct{}) *EarlyConnectionHandshakeCompleteCall
- func (c *EarlyConnectionHandshakeCompleteCall) DoAndReturn(f func() <-chan struct{}) *EarlyConnectionHandshakeCompleteCall
- func (c *EarlyConnectionHandshakeCompleteCall) Return(arg0 <-chan struct{}) *EarlyConnectionHandshakeCompleteCall
- type EarlyConnectionLocalAddrCall
- type EarlyConnectionNextConnectionCall
- func (c *EarlyConnectionNextConnectionCall) Do(f func() quic.Connection) *EarlyConnectionNextConnectionCall
- func (c *EarlyConnectionNextConnectionCall) DoAndReturn(f func() quic.Connection) *EarlyConnectionNextConnectionCall
- func (c *EarlyConnectionNextConnectionCall) Return(arg0 quic.Connection) *EarlyConnectionNextConnectionCall
- type EarlyConnectionOpenStreamCall
- func (c *EarlyConnectionOpenStreamCall) Do(f func() (quic.Stream, error)) *EarlyConnectionOpenStreamCall
- func (c *EarlyConnectionOpenStreamCall) DoAndReturn(f func() (quic.Stream, error)) *EarlyConnectionOpenStreamCall
- func (c *EarlyConnectionOpenStreamCall) Return(arg0 quic.Stream, arg1 error) *EarlyConnectionOpenStreamCall
- type EarlyConnectionOpenStreamSyncCall
- func (c *EarlyConnectionOpenStreamSyncCall) Do(f func(context.Context) (quic.Stream, error)) *EarlyConnectionOpenStreamSyncCall
- func (c *EarlyConnectionOpenStreamSyncCall) DoAndReturn(f func(context.Context) (quic.Stream, error)) *EarlyConnectionOpenStreamSyncCall
- func (c *EarlyConnectionOpenStreamSyncCall) Return(arg0 quic.Stream, arg1 error) *EarlyConnectionOpenStreamSyncCall
- type EarlyConnectionOpenUniStreamCall
- func (c *EarlyConnectionOpenUniStreamCall) Do(f func() (quic.SendStream, error)) *EarlyConnectionOpenUniStreamCall
- func (c *EarlyConnectionOpenUniStreamCall) DoAndReturn(f func() (quic.SendStream, error)) *EarlyConnectionOpenUniStreamCall
- func (c *EarlyConnectionOpenUniStreamCall) Return(arg0 quic.SendStream, arg1 error) *EarlyConnectionOpenUniStreamCall
- type EarlyConnectionOpenUniStreamSyncCall
- func (c *EarlyConnectionOpenUniStreamSyncCall) Do(f func(context.Context) (quic.SendStream, error)) *EarlyConnectionOpenUniStreamSyncCall
- func (c *EarlyConnectionOpenUniStreamSyncCall) DoAndReturn(f func(context.Context) (quic.SendStream, error)) *EarlyConnectionOpenUniStreamSyncCall
- func (c *EarlyConnectionOpenUniStreamSyncCall) Return(arg0 quic.SendStream, arg1 error) *EarlyConnectionOpenUniStreamSyncCall
- type EarlyConnectionReceiveDatagramCall
- func (c *EarlyConnectionReceiveDatagramCall) Do(f func(context.Context) ([]byte, error)) *EarlyConnectionReceiveDatagramCall
- func (c *EarlyConnectionReceiveDatagramCall) DoAndReturn(f func(context.Context) ([]byte, error)) *EarlyConnectionReceiveDatagramCall
- func (c *EarlyConnectionReceiveDatagramCall) Return(arg0 []byte, arg1 error) *EarlyConnectionReceiveDatagramCall
- type EarlyConnectionRemoteAddrCall
- type EarlyConnectionSendDatagramCall
- func (c *EarlyConnectionSendDatagramCall) Do(f func([]byte) error) *EarlyConnectionSendDatagramCall
- func (c *EarlyConnectionSendDatagramCall) DoAndReturn(f func([]byte) error) *EarlyConnectionSendDatagramCall
- func (c *EarlyConnectionSendDatagramCall) Return(arg0 error) *EarlyConnectionSendDatagramCall
- 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) ReceiveDatagram(arg0 context.Context) ([]byte, error)
- func (m *MockEarlyConnection) RemoteAddr() net.Addr
- func (m *MockEarlyConnection) SendDatagram(arg0 []byte) error
- type MockEarlyConnectionMockRecorder
- func (mr *MockEarlyConnectionMockRecorder) AcceptStream(arg0 any) *EarlyConnectionAcceptStreamCall
- func (mr *MockEarlyConnectionMockRecorder) AcceptUniStream(arg0 any) *EarlyConnectionAcceptUniStreamCall
- func (mr *MockEarlyConnectionMockRecorder) CloseWithError(arg0, arg1 any) *EarlyConnectionCloseWithErrorCall
- func (mr *MockEarlyConnectionMockRecorder) ConnectionState() *EarlyConnectionConnectionStateCall
- func (mr *MockEarlyConnectionMockRecorder) Context() *EarlyConnectionContextCall
- func (mr *MockEarlyConnectionMockRecorder) HandshakeComplete() *EarlyConnectionHandshakeCompleteCall
- func (mr *MockEarlyConnectionMockRecorder) LocalAddr() *EarlyConnectionLocalAddrCall
- func (mr *MockEarlyConnectionMockRecorder) NextConnection() *EarlyConnectionNextConnectionCall
- func (mr *MockEarlyConnectionMockRecorder) OpenStream() *EarlyConnectionOpenStreamCall
- func (mr *MockEarlyConnectionMockRecorder) OpenStreamSync(arg0 any) *EarlyConnectionOpenStreamSyncCall
- func (mr *MockEarlyConnectionMockRecorder) OpenUniStream() *EarlyConnectionOpenUniStreamCall
- func (mr *MockEarlyConnectionMockRecorder) OpenUniStreamSync(arg0 any) *EarlyConnectionOpenUniStreamSyncCall
- func (mr *MockEarlyConnectionMockRecorder) ReceiveDatagram(arg0 any) *EarlyConnectionReceiveDatagramCall
- func (mr *MockEarlyConnectionMockRecorder) RemoteAddr() *EarlyConnectionRemoteAddrCall
- func (mr *MockEarlyConnectionMockRecorder) SendDatagram(arg0 any) *EarlyConnectionSendDatagramCall
- 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) *StreamCancelReadCall
- func (mr *MockStreamMockRecorder) CancelWrite(arg0 any) *StreamCancelWriteCall
- func (mr *MockStreamMockRecorder) Close() *StreamCloseCall
- func (mr *MockStreamMockRecorder) Context() *StreamContextCall
- func (mr *MockStreamMockRecorder) Read(arg0 any) *StreamReadCall
- func (mr *MockStreamMockRecorder) SetDeadline(arg0 any) *StreamSetDeadlineCall
- func (mr *MockStreamMockRecorder) SetReadDeadline(arg0 any) *StreamSetReadDeadlineCall
- func (mr *MockStreamMockRecorder) SetWriteDeadline(arg0 any) *StreamSetWriteDeadlineCall
- func (mr *MockStreamMockRecorder) StreamID() *StreamStreamIDCall
- func (mr *MockStreamMockRecorder) Write(arg0 any) *StreamWriteCall
- type StreamCancelReadCall
- type StreamCancelWriteCall
- type StreamCloseCall
- type StreamContextCall
- type StreamReadCall
- type StreamSetDeadlineCall
- type StreamSetReadDeadlineCall
- type StreamSetWriteDeadlineCall
- type StreamStreamIDCall
- type StreamWriteCall
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EarlyConnectionAcceptStreamCall ¶
EarlyConnectionAcceptStreamCall wrap *gomock.Call
func (*EarlyConnectionAcceptStreamCall) Do ¶
func (c *EarlyConnectionAcceptStreamCall) Do(f func(context.Context) (quic.Stream, error)) *EarlyConnectionAcceptStreamCall
Do rewrite *gomock.Call.Do
func (*EarlyConnectionAcceptStreamCall) DoAndReturn ¶
func (c *EarlyConnectionAcceptStreamCall) DoAndReturn(f func(context.Context) (quic.Stream, error)) *EarlyConnectionAcceptStreamCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*EarlyConnectionAcceptStreamCall) Return ¶
func (c *EarlyConnectionAcceptStreamCall) Return(arg0 quic.Stream, arg1 error) *EarlyConnectionAcceptStreamCall
Return rewrite *gomock.Call.Return
type EarlyConnectionAcceptUniStreamCall ¶
EarlyConnectionAcceptUniStreamCall wrap *gomock.Call
func (*EarlyConnectionAcceptUniStreamCall) Do ¶
func (c *EarlyConnectionAcceptUniStreamCall) Do(f func(context.Context) (quic.ReceiveStream, error)) *EarlyConnectionAcceptUniStreamCall
Do rewrite *gomock.Call.Do
func (*EarlyConnectionAcceptUniStreamCall) DoAndReturn ¶
func (c *EarlyConnectionAcceptUniStreamCall) DoAndReturn(f func(context.Context) (quic.ReceiveStream, error)) *EarlyConnectionAcceptUniStreamCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*EarlyConnectionAcceptUniStreamCall) Return ¶
func (c *EarlyConnectionAcceptUniStreamCall) Return(arg0 quic.ReceiveStream, arg1 error) *EarlyConnectionAcceptUniStreamCall
Return rewrite *gomock.Call.Return
type EarlyConnectionCloseWithErrorCall ¶
EarlyConnectionCloseWithErrorCall wrap *gomock.Call
func (*EarlyConnectionCloseWithErrorCall) Do ¶
func (c *EarlyConnectionCloseWithErrorCall) Do(f func(qerr.ApplicationErrorCode, string) error) *EarlyConnectionCloseWithErrorCall
Do rewrite *gomock.Call.Do
func (*EarlyConnectionCloseWithErrorCall) DoAndReturn ¶
func (c *EarlyConnectionCloseWithErrorCall) DoAndReturn(f func(qerr.ApplicationErrorCode, string) error) *EarlyConnectionCloseWithErrorCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*EarlyConnectionCloseWithErrorCall) Return ¶
func (c *EarlyConnectionCloseWithErrorCall) Return(arg0 error) *EarlyConnectionCloseWithErrorCall
Return rewrite *gomock.Call.Return
type EarlyConnectionConnectionStateCall ¶
EarlyConnectionConnectionStateCall wrap *gomock.Call
func (*EarlyConnectionConnectionStateCall) Do ¶
func (c *EarlyConnectionConnectionStateCall) Do(f func() quic.ConnectionState) *EarlyConnectionConnectionStateCall
Do rewrite *gomock.Call.Do
func (*EarlyConnectionConnectionStateCall) DoAndReturn ¶
func (c *EarlyConnectionConnectionStateCall) DoAndReturn(f func() quic.ConnectionState) *EarlyConnectionConnectionStateCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*EarlyConnectionConnectionStateCall) Return ¶
func (c *EarlyConnectionConnectionStateCall) Return(arg0 quic.ConnectionState) *EarlyConnectionConnectionStateCall
Return rewrite *gomock.Call.Return
type EarlyConnectionContextCall ¶
EarlyConnectionContextCall wrap *gomock.Call
func (*EarlyConnectionContextCall) Do ¶
func (c *EarlyConnectionContextCall) Do(f func() context.Context) *EarlyConnectionContextCall
Do rewrite *gomock.Call.Do
func (*EarlyConnectionContextCall) DoAndReturn ¶
func (c *EarlyConnectionContextCall) DoAndReturn(f func() context.Context) *EarlyConnectionContextCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*EarlyConnectionContextCall) Return ¶
func (c *EarlyConnectionContextCall) Return(arg0 context.Context) *EarlyConnectionContextCall
Return rewrite *gomock.Call.Return
type EarlyConnectionHandshakeCompleteCall ¶
EarlyConnectionHandshakeCompleteCall wrap *gomock.Call
func (*EarlyConnectionHandshakeCompleteCall) Do ¶
func (c *EarlyConnectionHandshakeCompleteCall) Do(f func() <-chan struct{}) *EarlyConnectionHandshakeCompleteCall
Do rewrite *gomock.Call.Do
func (*EarlyConnectionHandshakeCompleteCall) DoAndReturn ¶
func (c *EarlyConnectionHandshakeCompleteCall) DoAndReturn(f func() <-chan struct{}) *EarlyConnectionHandshakeCompleteCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*EarlyConnectionHandshakeCompleteCall) Return ¶
func (c *EarlyConnectionHandshakeCompleteCall) Return(arg0 <-chan struct{}) *EarlyConnectionHandshakeCompleteCall
Return rewrite *gomock.Call.Return
type EarlyConnectionLocalAddrCall ¶
EarlyConnectionLocalAddrCall wrap *gomock.Call
func (*EarlyConnectionLocalAddrCall) Do ¶
func (c *EarlyConnectionLocalAddrCall) Do(f func() net.Addr) *EarlyConnectionLocalAddrCall
Do rewrite *gomock.Call.Do
func (*EarlyConnectionLocalAddrCall) DoAndReturn ¶
func (c *EarlyConnectionLocalAddrCall) DoAndReturn(f func() net.Addr) *EarlyConnectionLocalAddrCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*EarlyConnectionLocalAddrCall) Return ¶
func (c *EarlyConnectionLocalAddrCall) Return(arg0 net.Addr) *EarlyConnectionLocalAddrCall
Return rewrite *gomock.Call.Return
type EarlyConnectionNextConnectionCall ¶
EarlyConnectionNextConnectionCall wrap *gomock.Call
func (*EarlyConnectionNextConnectionCall) Do ¶
func (c *EarlyConnectionNextConnectionCall) Do(f func() quic.Connection) *EarlyConnectionNextConnectionCall
Do rewrite *gomock.Call.Do
func (*EarlyConnectionNextConnectionCall) DoAndReturn ¶
func (c *EarlyConnectionNextConnectionCall) DoAndReturn(f func() quic.Connection) *EarlyConnectionNextConnectionCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*EarlyConnectionNextConnectionCall) Return ¶
func (c *EarlyConnectionNextConnectionCall) Return(arg0 quic.Connection) *EarlyConnectionNextConnectionCall
Return rewrite *gomock.Call.Return
type EarlyConnectionOpenStreamCall ¶
EarlyConnectionOpenStreamCall wrap *gomock.Call
func (*EarlyConnectionOpenStreamCall) Do ¶
func (c *EarlyConnectionOpenStreamCall) Do(f func() (quic.Stream, error)) *EarlyConnectionOpenStreamCall
Do rewrite *gomock.Call.Do
func (*EarlyConnectionOpenStreamCall) DoAndReturn ¶
func (c *EarlyConnectionOpenStreamCall) DoAndReturn(f func() (quic.Stream, error)) *EarlyConnectionOpenStreamCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*EarlyConnectionOpenStreamCall) Return ¶
func (c *EarlyConnectionOpenStreamCall) Return(arg0 quic.Stream, arg1 error) *EarlyConnectionOpenStreamCall
Return rewrite *gomock.Call.Return
type EarlyConnectionOpenStreamSyncCall ¶
EarlyConnectionOpenStreamSyncCall wrap *gomock.Call
func (*EarlyConnectionOpenStreamSyncCall) Do ¶
func (c *EarlyConnectionOpenStreamSyncCall) Do(f func(context.Context) (quic.Stream, error)) *EarlyConnectionOpenStreamSyncCall
Do rewrite *gomock.Call.Do
func (*EarlyConnectionOpenStreamSyncCall) DoAndReturn ¶
func (c *EarlyConnectionOpenStreamSyncCall) DoAndReturn(f func(context.Context) (quic.Stream, error)) *EarlyConnectionOpenStreamSyncCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*EarlyConnectionOpenStreamSyncCall) Return ¶
func (c *EarlyConnectionOpenStreamSyncCall) Return(arg0 quic.Stream, arg1 error) *EarlyConnectionOpenStreamSyncCall
Return rewrite *gomock.Call.Return
type EarlyConnectionOpenUniStreamCall ¶
EarlyConnectionOpenUniStreamCall wrap *gomock.Call
func (*EarlyConnectionOpenUniStreamCall) Do ¶
func (c *EarlyConnectionOpenUniStreamCall) Do(f func() (quic.SendStream, error)) *EarlyConnectionOpenUniStreamCall
Do rewrite *gomock.Call.Do
func (*EarlyConnectionOpenUniStreamCall) DoAndReturn ¶
func (c *EarlyConnectionOpenUniStreamCall) DoAndReturn(f func() (quic.SendStream, error)) *EarlyConnectionOpenUniStreamCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*EarlyConnectionOpenUniStreamCall) Return ¶
func (c *EarlyConnectionOpenUniStreamCall) Return(arg0 quic.SendStream, arg1 error) *EarlyConnectionOpenUniStreamCall
Return rewrite *gomock.Call.Return
type EarlyConnectionOpenUniStreamSyncCall ¶
EarlyConnectionOpenUniStreamSyncCall wrap *gomock.Call
func (*EarlyConnectionOpenUniStreamSyncCall) Do ¶
func (c *EarlyConnectionOpenUniStreamSyncCall) Do(f func(context.Context) (quic.SendStream, error)) *EarlyConnectionOpenUniStreamSyncCall
Do rewrite *gomock.Call.Do
func (*EarlyConnectionOpenUniStreamSyncCall) DoAndReturn ¶
func (c *EarlyConnectionOpenUniStreamSyncCall) DoAndReturn(f func(context.Context) (quic.SendStream, error)) *EarlyConnectionOpenUniStreamSyncCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*EarlyConnectionOpenUniStreamSyncCall) Return ¶
func (c *EarlyConnectionOpenUniStreamSyncCall) Return(arg0 quic.SendStream, arg1 error) *EarlyConnectionOpenUniStreamSyncCall
Return rewrite *gomock.Call.Return
type EarlyConnectionReceiveDatagramCall ¶
EarlyConnectionReceiveDatagramCall wrap *gomock.Call
func (*EarlyConnectionReceiveDatagramCall) Do ¶
func (c *EarlyConnectionReceiveDatagramCall) Do(f func(context.Context) ([]byte, error)) *EarlyConnectionReceiveDatagramCall
Do rewrite *gomock.Call.Do
func (*EarlyConnectionReceiveDatagramCall) DoAndReturn ¶
func (c *EarlyConnectionReceiveDatagramCall) DoAndReturn(f func(context.Context) ([]byte, error)) *EarlyConnectionReceiveDatagramCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*EarlyConnectionReceiveDatagramCall) Return ¶
func (c *EarlyConnectionReceiveDatagramCall) Return(arg0 []byte, arg1 error) *EarlyConnectionReceiveDatagramCall
Return rewrite *gomock.Call.Return
type EarlyConnectionRemoteAddrCall ¶
EarlyConnectionRemoteAddrCall wrap *gomock.Call
func (*EarlyConnectionRemoteAddrCall) Do ¶
func (c *EarlyConnectionRemoteAddrCall) Do(f func() net.Addr) *EarlyConnectionRemoteAddrCall
Do rewrite *gomock.Call.Do
func (*EarlyConnectionRemoteAddrCall) DoAndReturn ¶
func (c *EarlyConnectionRemoteAddrCall) DoAndReturn(f func() net.Addr) *EarlyConnectionRemoteAddrCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*EarlyConnectionRemoteAddrCall) Return ¶
func (c *EarlyConnectionRemoteAddrCall) Return(arg0 net.Addr) *EarlyConnectionRemoteAddrCall
Return rewrite *gomock.Call.Return
type EarlyConnectionSendDatagramCall ¶
EarlyConnectionSendDatagramCall wrap *gomock.Call
func (*EarlyConnectionSendDatagramCall) Do ¶
func (c *EarlyConnectionSendDatagramCall) Do(f func([]byte) error) *EarlyConnectionSendDatagramCall
Do rewrite *gomock.Call.Do
func (*EarlyConnectionSendDatagramCall) DoAndReturn ¶
func (c *EarlyConnectionSendDatagramCall) DoAndReturn(f func([]byte) error) *EarlyConnectionSendDatagramCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*EarlyConnectionSendDatagramCall) Return ¶
func (c *EarlyConnectionSendDatagramCall) Return(arg0 error) *EarlyConnectionSendDatagramCall
Return rewrite *gomock.Call.Return
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) ReceiveDatagram ¶
func (m *MockEarlyConnection) ReceiveDatagram(arg0 context.Context) ([]byte, error)
ReceiveDatagram mocks base method.
func (*MockEarlyConnection) RemoteAddr ¶
func (m *MockEarlyConnection) RemoteAddr() net.Addr
RemoteAddr mocks base method.
func (*MockEarlyConnection) SendDatagram ¶
func (m *MockEarlyConnection) SendDatagram(arg0 []byte) error
SendDatagram 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) *EarlyConnectionAcceptStreamCall
AcceptStream indicates an expected call of AcceptStream.
func (*MockEarlyConnectionMockRecorder) AcceptUniStream ¶
func (mr *MockEarlyConnectionMockRecorder) AcceptUniStream(arg0 any) *EarlyConnectionAcceptUniStreamCall
AcceptUniStream indicates an expected call of AcceptUniStream.
func (*MockEarlyConnectionMockRecorder) CloseWithError ¶
func (mr *MockEarlyConnectionMockRecorder) CloseWithError(arg0, arg1 any) *EarlyConnectionCloseWithErrorCall
CloseWithError indicates an expected call of CloseWithError.
func (*MockEarlyConnectionMockRecorder) ConnectionState ¶
func (mr *MockEarlyConnectionMockRecorder) ConnectionState() *EarlyConnectionConnectionStateCall
ConnectionState indicates an expected call of ConnectionState.
func (*MockEarlyConnectionMockRecorder) Context ¶
func (mr *MockEarlyConnectionMockRecorder) Context() *EarlyConnectionContextCall
Context indicates an expected call of Context.
func (*MockEarlyConnectionMockRecorder) HandshakeComplete ¶
func (mr *MockEarlyConnectionMockRecorder) HandshakeComplete() *EarlyConnectionHandshakeCompleteCall
HandshakeComplete indicates an expected call of HandshakeComplete.
func (*MockEarlyConnectionMockRecorder) LocalAddr ¶
func (mr *MockEarlyConnectionMockRecorder) LocalAddr() *EarlyConnectionLocalAddrCall
LocalAddr indicates an expected call of LocalAddr.
func (*MockEarlyConnectionMockRecorder) NextConnection ¶
func (mr *MockEarlyConnectionMockRecorder) NextConnection() *EarlyConnectionNextConnectionCall
NextConnection indicates an expected call of NextConnection.
func (*MockEarlyConnectionMockRecorder) OpenStream ¶
func (mr *MockEarlyConnectionMockRecorder) OpenStream() *EarlyConnectionOpenStreamCall
OpenStream indicates an expected call of OpenStream.
func (*MockEarlyConnectionMockRecorder) OpenStreamSync ¶
func (mr *MockEarlyConnectionMockRecorder) OpenStreamSync(arg0 any) *EarlyConnectionOpenStreamSyncCall
OpenStreamSync indicates an expected call of OpenStreamSync.
func (*MockEarlyConnectionMockRecorder) OpenUniStream ¶
func (mr *MockEarlyConnectionMockRecorder) OpenUniStream() *EarlyConnectionOpenUniStreamCall
OpenUniStream indicates an expected call of OpenUniStream.
func (*MockEarlyConnectionMockRecorder) OpenUniStreamSync ¶
func (mr *MockEarlyConnectionMockRecorder) OpenUniStreamSync(arg0 any) *EarlyConnectionOpenUniStreamSyncCall
OpenUniStreamSync indicates an expected call of OpenUniStreamSync.
func (*MockEarlyConnectionMockRecorder) ReceiveDatagram ¶
func (mr *MockEarlyConnectionMockRecorder) ReceiveDatagram(arg0 any) *EarlyConnectionReceiveDatagramCall
ReceiveDatagram indicates an expected call of ReceiveDatagram.
func (*MockEarlyConnectionMockRecorder) RemoteAddr ¶
func (mr *MockEarlyConnectionMockRecorder) RemoteAddr() *EarlyConnectionRemoteAddrCall
RemoteAddr indicates an expected call of RemoteAddr.
func (*MockEarlyConnectionMockRecorder) SendDatagram ¶
func (mr *MockEarlyConnectionMockRecorder) SendDatagram(arg0 any) *EarlyConnectionSendDatagramCall
SendDatagram indicates an expected call of SendDatagram.
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) *StreamCancelReadCall
CancelRead indicates an expected call of CancelRead.
func (*MockStreamMockRecorder) CancelWrite ¶
func (mr *MockStreamMockRecorder) CancelWrite(arg0 any) *StreamCancelWriteCall
CancelWrite indicates an expected call of CancelWrite.
func (*MockStreamMockRecorder) Close ¶
func (mr *MockStreamMockRecorder) Close() *StreamCloseCall
Close indicates an expected call of Close.
func (*MockStreamMockRecorder) Context ¶
func (mr *MockStreamMockRecorder) Context() *StreamContextCall
Context indicates an expected call of Context.
func (*MockStreamMockRecorder) Read ¶
func (mr *MockStreamMockRecorder) Read(arg0 any) *StreamReadCall
Read indicates an expected call of Read.
func (*MockStreamMockRecorder) SetDeadline ¶
func (mr *MockStreamMockRecorder) SetDeadline(arg0 any) *StreamSetDeadlineCall
SetDeadline indicates an expected call of SetDeadline.
func (*MockStreamMockRecorder) SetReadDeadline ¶
func (mr *MockStreamMockRecorder) SetReadDeadline(arg0 any) *StreamSetReadDeadlineCall
SetReadDeadline indicates an expected call of SetReadDeadline.
func (*MockStreamMockRecorder) SetWriteDeadline ¶
func (mr *MockStreamMockRecorder) SetWriteDeadline(arg0 any) *StreamSetWriteDeadlineCall
SetWriteDeadline indicates an expected call of SetWriteDeadline.
func (*MockStreamMockRecorder) StreamID ¶
func (mr *MockStreamMockRecorder) StreamID() *StreamStreamIDCall
StreamID indicates an expected call of StreamID.
func (*MockStreamMockRecorder) Write ¶
func (mr *MockStreamMockRecorder) Write(arg0 any) *StreamWriteCall
Write indicates an expected call of Write.
type StreamCancelReadCall ¶
StreamCancelReadCall wrap *gomock.Call
func (*StreamCancelReadCall) Do ¶
func (c *StreamCancelReadCall) Do(f func(qerr.StreamErrorCode)) *StreamCancelReadCall
Do rewrite *gomock.Call.Do
func (*StreamCancelReadCall) DoAndReturn ¶
func (c *StreamCancelReadCall) DoAndReturn(f func(qerr.StreamErrorCode)) *StreamCancelReadCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*StreamCancelReadCall) Return ¶
func (c *StreamCancelReadCall) Return() *StreamCancelReadCall
Return rewrite *gomock.Call.Return
type StreamCancelWriteCall ¶
StreamCancelWriteCall wrap *gomock.Call
func (*StreamCancelWriteCall) Do ¶
func (c *StreamCancelWriteCall) Do(f func(qerr.StreamErrorCode)) *StreamCancelWriteCall
Do rewrite *gomock.Call.Do
func (*StreamCancelWriteCall) DoAndReturn ¶
func (c *StreamCancelWriteCall) DoAndReturn(f func(qerr.StreamErrorCode)) *StreamCancelWriteCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*StreamCancelWriteCall) Return ¶
func (c *StreamCancelWriteCall) Return() *StreamCancelWriteCall
Return rewrite *gomock.Call.Return
type StreamCloseCall ¶
StreamCloseCall wrap *gomock.Call
func (*StreamCloseCall) Do ¶
func (c *StreamCloseCall) Do(f func() error) *StreamCloseCall
Do rewrite *gomock.Call.Do
func (*StreamCloseCall) DoAndReturn ¶
func (c *StreamCloseCall) DoAndReturn(f func() error) *StreamCloseCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*StreamCloseCall) Return ¶
func (c *StreamCloseCall) Return(arg0 error) *StreamCloseCall
Return rewrite *gomock.Call.Return
type StreamContextCall ¶
StreamContextCall wrap *gomock.Call
func (*StreamContextCall) Do ¶
func (c *StreamContextCall) Do(f func() context.Context) *StreamContextCall
Do rewrite *gomock.Call.Do
func (*StreamContextCall) DoAndReturn ¶
func (c *StreamContextCall) DoAndReturn(f func() context.Context) *StreamContextCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*StreamContextCall) Return ¶
func (c *StreamContextCall) Return(arg0 context.Context) *StreamContextCall
Return rewrite *gomock.Call.Return
type StreamReadCall ¶
StreamReadCall wrap *gomock.Call
func (*StreamReadCall) Do ¶
func (c *StreamReadCall) Do(f func([]byte) (int, error)) *StreamReadCall
Do rewrite *gomock.Call.Do
func (*StreamReadCall) DoAndReturn ¶
func (c *StreamReadCall) DoAndReturn(f func([]byte) (int, error)) *StreamReadCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*StreamReadCall) Return ¶
func (c *StreamReadCall) Return(arg0 int, arg1 error) *StreamReadCall
Return rewrite *gomock.Call.Return
type StreamSetDeadlineCall ¶
StreamSetDeadlineCall wrap *gomock.Call
func (*StreamSetDeadlineCall) Do ¶
func (c *StreamSetDeadlineCall) Do(f func(time.Time) error) *StreamSetDeadlineCall
Do rewrite *gomock.Call.Do
func (*StreamSetDeadlineCall) DoAndReturn ¶
func (c *StreamSetDeadlineCall) DoAndReturn(f func(time.Time) error) *StreamSetDeadlineCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*StreamSetDeadlineCall) Return ¶
func (c *StreamSetDeadlineCall) Return(arg0 error) *StreamSetDeadlineCall
Return rewrite *gomock.Call.Return
type StreamSetReadDeadlineCall ¶
StreamSetReadDeadlineCall wrap *gomock.Call
func (*StreamSetReadDeadlineCall) Do ¶
func (c *StreamSetReadDeadlineCall) Do(f func(time.Time) error) *StreamSetReadDeadlineCall
Do rewrite *gomock.Call.Do
func (*StreamSetReadDeadlineCall) DoAndReturn ¶
func (c *StreamSetReadDeadlineCall) DoAndReturn(f func(time.Time) error) *StreamSetReadDeadlineCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*StreamSetReadDeadlineCall) Return ¶
func (c *StreamSetReadDeadlineCall) Return(arg0 error) *StreamSetReadDeadlineCall
Return rewrite *gomock.Call.Return
type StreamSetWriteDeadlineCall ¶
StreamSetWriteDeadlineCall wrap *gomock.Call
func (*StreamSetWriteDeadlineCall) Do ¶
func (c *StreamSetWriteDeadlineCall) Do(f func(time.Time) error) *StreamSetWriteDeadlineCall
Do rewrite *gomock.Call.Do
func (*StreamSetWriteDeadlineCall) DoAndReturn ¶
func (c *StreamSetWriteDeadlineCall) DoAndReturn(f func(time.Time) error) *StreamSetWriteDeadlineCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*StreamSetWriteDeadlineCall) Return ¶
func (c *StreamSetWriteDeadlineCall) Return(arg0 error) *StreamSetWriteDeadlineCall
Return rewrite *gomock.Call.Return
type StreamStreamIDCall ¶
StreamStreamIDCall wrap *gomock.Call
func (*StreamStreamIDCall) Do ¶
func (c *StreamStreamIDCall) Do(f func() protocol.StreamID) *StreamStreamIDCall
Do rewrite *gomock.Call.Do
func (*StreamStreamIDCall) DoAndReturn ¶
func (c *StreamStreamIDCall) DoAndReturn(f func() protocol.StreamID) *StreamStreamIDCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*StreamStreamIDCall) Return ¶
func (c *StreamStreamIDCall) Return(arg0 protocol.StreamID) *StreamStreamIDCall
Return rewrite *gomock.Call.Return
type StreamWriteCall ¶
StreamWriteCall wrap *gomock.Call
func (*StreamWriteCall) Do ¶
func (c *StreamWriteCall) Do(f func([]byte) (int, error)) *StreamWriteCall
Do rewrite *gomock.Call.Do
func (*StreamWriteCall) DoAndReturn ¶
func (c *StreamWriteCall) DoAndReturn(f func([]byte) (int, error)) *StreamWriteCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*StreamWriteCall) Return ¶
func (c *StreamWriteCall) Return(arg0 int, arg1 error) *StreamWriteCall
Return rewrite *gomock.Call.Return