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 ¶ added in v0.40.0
EarlyConnectionAcceptStreamCall wrap *gomock.Call
func (*EarlyConnectionAcceptStreamCall) Do ¶ added in v0.40.0
func (c *EarlyConnectionAcceptStreamCall) Do(f func(context.Context) (quic.Stream, error)) *EarlyConnectionAcceptStreamCall
Do rewrite *gomock.Call.Do
func (*EarlyConnectionAcceptStreamCall) DoAndReturn ¶ added in v0.40.0
func (c *EarlyConnectionAcceptStreamCall) DoAndReturn(f func(context.Context) (quic.Stream, error)) *EarlyConnectionAcceptStreamCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*EarlyConnectionAcceptStreamCall) Return ¶ added in v0.40.0
func (c *EarlyConnectionAcceptStreamCall) Return(arg0 quic.Stream, arg1 error) *EarlyConnectionAcceptStreamCall
Return rewrite *gomock.Call.Return
type EarlyConnectionAcceptUniStreamCall ¶ added in v0.40.0
EarlyConnectionAcceptUniStreamCall wrap *gomock.Call
func (*EarlyConnectionAcceptUniStreamCall) Do ¶ added in v0.40.0
func (c *EarlyConnectionAcceptUniStreamCall) Do(f func(context.Context) (quic.ReceiveStream, error)) *EarlyConnectionAcceptUniStreamCall
Do rewrite *gomock.Call.Do
func (*EarlyConnectionAcceptUniStreamCall) DoAndReturn ¶ added in v0.40.0
func (c *EarlyConnectionAcceptUniStreamCall) DoAndReturn(f func(context.Context) (quic.ReceiveStream, error)) *EarlyConnectionAcceptUniStreamCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*EarlyConnectionAcceptUniStreamCall) Return ¶ added in v0.40.0
func (c *EarlyConnectionAcceptUniStreamCall) Return(arg0 quic.ReceiveStream, arg1 error) *EarlyConnectionAcceptUniStreamCall
Return rewrite *gomock.Call.Return
type EarlyConnectionCloseWithErrorCall ¶ added in v0.40.0
EarlyConnectionCloseWithErrorCall wrap *gomock.Call
func (*EarlyConnectionCloseWithErrorCall) Do ¶ added in v0.40.0
func (c *EarlyConnectionCloseWithErrorCall) Do(f func(qerr.ApplicationErrorCode, string) error) *EarlyConnectionCloseWithErrorCall
Do rewrite *gomock.Call.Do
func (*EarlyConnectionCloseWithErrorCall) DoAndReturn ¶ added in v0.40.0
func (c *EarlyConnectionCloseWithErrorCall) DoAndReturn(f func(qerr.ApplicationErrorCode, string) error) *EarlyConnectionCloseWithErrorCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*EarlyConnectionCloseWithErrorCall) Return ¶ added in v0.40.0
func (c *EarlyConnectionCloseWithErrorCall) Return(arg0 error) *EarlyConnectionCloseWithErrorCall
Return rewrite *gomock.Call.Return
type EarlyConnectionConnectionStateCall ¶ added in v0.40.0
EarlyConnectionConnectionStateCall wrap *gomock.Call
func (*EarlyConnectionConnectionStateCall) Do ¶ added in v0.40.0
func (c *EarlyConnectionConnectionStateCall) Do(f func() quic.ConnectionState) *EarlyConnectionConnectionStateCall
Do rewrite *gomock.Call.Do
func (*EarlyConnectionConnectionStateCall) DoAndReturn ¶ added in v0.40.0
func (c *EarlyConnectionConnectionStateCall) DoAndReturn(f func() quic.ConnectionState) *EarlyConnectionConnectionStateCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*EarlyConnectionConnectionStateCall) Return ¶ added in v0.40.0
func (c *EarlyConnectionConnectionStateCall) Return(arg0 quic.ConnectionState) *EarlyConnectionConnectionStateCall
Return rewrite *gomock.Call.Return
type EarlyConnectionContextCall ¶ added in v0.40.0
EarlyConnectionContextCall wrap *gomock.Call
func (*EarlyConnectionContextCall) Do ¶ added in v0.40.0
func (c *EarlyConnectionContextCall) Do(f func() context.Context) *EarlyConnectionContextCall
Do rewrite *gomock.Call.Do
func (*EarlyConnectionContextCall) DoAndReturn ¶ added in v0.40.0
func (c *EarlyConnectionContextCall) DoAndReturn(f func() context.Context) *EarlyConnectionContextCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*EarlyConnectionContextCall) Return ¶ added in v0.40.0
func (c *EarlyConnectionContextCall) Return(arg0 context.Context) *EarlyConnectionContextCall
Return rewrite *gomock.Call.Return
type EarlyConnectionHandshakeCompleteCall ¶ added in v0.40.0
EarlyConnectionHandshakeCompleteCall wrap *gomock.Call
func (*EarlyConnectionHandshakeCompleteCall) Do ¶ added in v0.40.0
func (c *EarlyConnectionHandshakeCompleteCall) Do(f func() <-chan struct{}) *EarlyConnectionHandshakeCompleteCall
Do rewrite *gomock.Call.Do
func (*EarlyConnectionHandshakeCompleteCall) DoAndReturn ¶ added in v0.40.0
func (c *EarlyConnectionHandshakeCompleteCall) DoAndReturn(f func() <-chan struct{}) *EarlyConnectionHandshakeCompleteCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*EarlyConnectionHandshakeCompleteCall) Return ¶ added in v0.40.0
func (c *EarlyConnectionHandshakeCompleteCall) Return(arg0 <-chan struct{}) *EarlyConnectionHandshakeCompleteCall
Return rewrite *gomock.Call.Return
type EarlyConnectionLocalAddrCall ¶ added in v0.40.0
EarlyConnectionLocalAddrCall wrap *gomock.Call
func (*EarlyConnectionLocalAddrCall) Do ¶ added in v0.40.0
func (c *EarlyConnectionLocalAddrCall) Do(f func() net.Addr) *EarlyConnectionLocalAddrCall
Do rewrite *gomock.Call.Do
func (*EarlyConnectionLocalAddrCall) DoAndReturn ¶ added in v0.40.0
func (c *EarlyConnectionLocalAddrCall) DoAndReturn(f func() net.Addr) *EarlyConnectionLocalAddrCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*EarlyConnectionLocalAddrCall) Return ¶ added in v0.40.0
func (c *EarlyConnectionLocalAddrCall) Return(arg0 net.Addr) *EarlyConnectionLocalAddrCall
Return rewrite *gomock.Call.Return
type EarlyConnectionNextConnectionCall ¶ added in v0.40.0
EarlyConnectionNextConnectionCall wrap *gomock.Call
func (*EarlyConnectionNextConnectionCall) Do ¶ added in v0.40.0
func (c *EarlyConnectionNextConnectionCall) Do(f func() quic.Connection) *EarlyConnectionNextConnectionCall
Do rewrite *gomock.Call.Do
func (*EarlyConnectionNextConnectionCall) DoAndReturn ¶ added in v0.40.0
func (c *EarlyConnectionNextConnectionCall) DoAndReturn(f func() quic.Connection) *EarlyConnectionNextConnectionCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*EarlyConnectionNextConnectionCall) Return ¶ added in v0.40.0
func (c *EarlyConnectionNextConnectionCall) Return(arg0 quic.Connection) *EarlyConnectionNextConnectionCall
Return rewrite *gomock.Call.Return
type EarlyConnectionOpenStreamCall ¶ added in v0.40.0
EarlyConnectionOpenStreamCall wrap *gomock.Call
func (*EarlyConnectionOpenStreamCall) Do ¶ added in v0.40.0
func (c *EarlyConnectionOpenStreamCall) Do(f func() (quic.Stream, error)) *EarlyConnectionOpenStreamCall
Do rewrite *gomock.Call.Do
func (*EarlyConnectionOpenStreamCall) DoAndReturn ¶ added in v0.40.0
func (c *EarlyConnectionOpenStreamCall) DoAndReturn(f func() (quic.Stream, error)) *EarlyConnectionOpenStreamCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*EarlyConnectionOpenStreamCall) Return ¶ added in v0.40.0
func (c *EarlyConnectionOpenStreamCall) Return(arg0 quic.Stream, arg1 error) *EarlyConnectionOpenStreamCall
Return rewrite *gomock.Call.Return
type EarlyConnectionOpenStreamSyncCall ¶ added in v0.40.0
EarlyConnectionOpenStreamSyncCall wrap *gomock.Call
func (*EarlyConnectionOpenStreamSyncCall) Do ¶ added in v0.40.0
func (c *EarlyConnectionOpenStreamSyncCall) Do(f func(context.Context) (quic.Stream, error)) *EarlyConnectionOpenStreamSyncCall
Do rewrite *gomock.Call.Do
func (*EarlyConnectionOpenStreamSyncCall) DoAndReturn ¶ added in v0.40.0
func (c *EarlyConnectionOpenStreamSyncCall) DoAndReturn(f func(context.Context) (quic.Stream, error)) *EarlyConnectionOpenStreamSyncCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*EarlyConnectionOpenStreamSyncCall) Return ¶ added in v0.40.0
func (c *EarlyConnectionOpenStreamSyncCall) Return(arg0 quic.Stream, arg1 error) *EarlyConnectionOpenStreamSyncCall
Return rewrite *gomock.Call.Return
type EarlyConnectionOpenUniStreamCall ¶ added in v0.40.0
EarlyConnectionOpenUniStreamCall wrap *gomock.Call
func (*EarlyConnectionOpenUniStreamCall) Do ¶ added in v0.40.0
func (c *EarlyConnectionOpenUniStreamCall) Do(f func() (quic.SendStream, error)) *EarlyConnectionOpenUniStreamCall
Do rewrite *gomock.Call.Do
func (*EarlyConnectionOpenUniStreamCall) DoAndReturn ¶ added in v0.40.0
func (c *EarlyConnectionOpenUniStreamCall) DoAndReturn(f func() (quic.SendStream, error)) *EarlyConnectionOpenUniStreamCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*EarlyConnectionOpenUniStreamCall) Return ¶ added in v0.40.0
func (c *EarlyConnectionOpenUniStreamCall) Return(arg0 quic.SendStream, arg1 error) *EarlyConnectionOpenUniStreamCall
Return rewrite *gomock.Call.Return
type EarlyConnectionOpenUniStreamSyncCall ¶ added in v0.40.0
EarlyConnectionOpenUniStreamSyncCall wrap *gomock.Call
func (*EarlyConnectionOpenUniStreamSyncCall) Do ¶ added in v0.40.0
func (c *EarlyConnectionOpenUniStreamSyncCall) Do(f func(context.Context) (quic.SendStream, error)) *EarlyConnectionOpenUniStreamSyncCall
Do rewrite *gomock.Call.Do
func (*EarlyConnectionOpenUniStreamSyncCall) DoAndReturn ¶ added in v0.40.0
func (c *EarlyConnectionOpenUniStreamSyncCall) DoAndReturn(f func(context.Context) (quic.SendStream, error)) *EarlyConnectionOpenUniStreamSyncCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*EarlyConnectionOpenUniStreamSyncCall) Return ¶ added in v0.40.0
func (c *EarlyConnectionOpenUniStreamSyncCall) Return(arg0 quic.SendStream, arg1 error) *EarlyConnectionOpenUniStreamSyncCall
Return rewrite *gomock.Call.Return
type EarlyConnectionReceiveDatagramCall ¶ added in v0.40.0
EarlyConnectionReceiveDatagramCall wrap *gomock.Call
func (*EarlyConnectionReceiveDatagramCall) Do ¶ added in v0.40.0
func (c *EarlyConnectionReceiveDatagramCall) Do(f func(context.Context) ([]byte, error)) *EarlyConnectionReceiveDatagramCall
Do rewrite *gomock.Call.Do
func (*EarlyConnectionReceiveDatagramCall) DoAndReturn ¶ added in v0.40.0
func (c *EarlyConnectionReceiveDatagramCall) DoAndReturn(f func(context.Context) ([]byte, error)) *EarlyConnectionReceiveDatagramCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*EarlyConnectionReceiveDatagramCall) Return ¶ added in v0.40.0
func (c *EarlyConnectionReceiveDatagramCall) Return(arg0 []byte, arg1 error) *EarlyConnectionReceiveDatagramCall
Return rewrite *gomock.Call.Return
type EarlyConnectionRemoteAddrCall ¶ added in v0.40.0
EarlyConnectionRemoteAddrCall wrap *gomock.Call
func (*EarlyConnectionRemoteAddrCall) Do ¶ added in v0.40.0
func (c *EarlyConnectionRemoteAddrCall) Do(f func() net.Addr) *EarlyConnectionRemoteAddrCall
Do rewrite *gomock.Call.Do
func (*EarlyConnectionRemoteAddrCall) DoAndReturn ¶ added in v0.40.0
func (c *EarlyConnectionRemoteAddrCall) DoAndReturn(f func() net.Addr) *EarlyConnectionRemoteAddrCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*EarlyConnectionRemoteAddrCall) Return ¶ added in v0.40.0
func (c *EarlyConnectionRemoteAddrCall) Return(arg0 net.Addr) *EarlyConnectionRemoteAddrCall
Return rewrite *gomock.Call.Return
type EarlyConnectionSendDatagramCall ¶ added in v0.40.0
EarlyConnectionSendDatagramCall wrap *gomock.Call
func (*EarlyConnectionSendDatagramCall) Do ¶ added in v0.40.0
func (c *EarlyConnectionSendDatagramCall) Do(f func([]byte) error) *EarlyConnectionSendDatagramCall
Do rewrite *gomock.Call.Do
func (*EarlyConnectionSendDatagramCall) DoAndReturn ¶ added in v0.40.0
func (c *EarlyConnectionSendDatagramCall) DoAndReturn(f func([]byte) error) *EarlyConnectionSendDatagramCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*EarlyConnectionSendDatagramCall) Return ¶ added in v0.40.0
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 ¶ added in v0.40.0
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 ¶ added in v0.40.0
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 ¶ added in v0.40.0
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 ¶ added in v0.40.0
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 ¶ added in v0.40.0
StreamCancelReadCall wrap *gomock.Call
func (*StreamCancelReadCall) Do ¶ added in v0.40.0
func (c *StreamCancelReadCall) Do(f func(qerr.StreamErrorCode)) *StreamCancelReadCall
Do rewrite *gomock.Call.Do
func (*StreamCancelReadCall) DoAndReturn ¶ added in v0.40.0
func (c *StreamCancelReadCall) DoAndReturn(f func(qerr.StreamErrorCode)) *StreamCancelReadCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*StreamCancelReadCall) Return ¶ added in v0.40.0
func (c *StreamCancelReadCall) Return() *StreamCancelReadCall
Return rewrite *gomock.Call.Return
type StreamCancelWriteCall ¶ added in v0.40.0
StreamCancelWriteCall wrap *gomock.Call
func (*StreamCancelWriteCall) Do ¶ added in v0.40.0
func (c *StreamCancelWriteCall) Do(f func(qerr.StreamErrorCode)) *StreamCancelWriteCall
Do rewrite *gomock.Call.Do
func (*StreamCancelWriteCall) DoAndReturn ¶ added in v0.40.0
func (c *StreamCancelWriteCall) DoAndReturn(f func(qerr.StreamErrorCode)) *StreamCancelWriteCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*StreamCancelWriteCall) Return ¶ added in v0.40.0
func (c *StreamCancelWriteCall) Return() *StreamCancelWriteCall
Return rewrite *gomock.Call.Return
type StreamCloseCall ¶ added in v0.40.0
StreamCloseCall wrap *gomock.Call
func (*StreamCloseCall) Do ¶ added in v0.40.0
func (c *StreamCloseCall) Do(f func() error) *StreamCloseCall
Do rewrite *gomock.Call.Do
func (*StreamCloseCall) DoAndReturn ¶ added in v0.40.0
func (c *StreamCloseCall) DoAndReturn(f func() error) *StreamCloseCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*StreamCloseCall) Return ¶ added in v0.40.0
func (c *StreamCloseCall) Return(arg0 error) *StreamCloseCall
Return rewrite *gomock.Call.Return
type StreamContextCall ¶ added in v0.40.0
StreamContextCall wrap *gomock.Call
func (*StreamContextCall) Do ¶ added in v0.40.0
func (c *StreamContextCall) Do(f func() context.Context) *StreamContextCall
Do rewrite *gomock.Call.Do
func (*StreamContextCall) DoAndReturn ¶ added in v0.40.0
func (c *StreamContextCall) DoAndReturn(f func() context.Context) *StreamContextCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*StreamContextCall) Return ¶ added in v0.40.0
func (c *StreamContextCall) Return(arg0 context.Context) *StreamContextCall
Return rewrite *gomock.Call.Return
type StreamReadCall ¶ added in v0.40.0
StreamReadCall wrap *gomock.Call
func (*StreamReadCall) Do ¶ added in v0.40.0
func (c *StreamReadCall) Do(f func([]byte) (int, error)) *StreamReadCall
Do rewrite *gomock.Call.Do
func (*StreamReadCall) DoAndReturn ¶ added in v0.40.0
func (c *StreamReadCall) DoAndReturn(f func([]byte) (int, error)) *StreamReadCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*StreamReadCall) Return ¶ added in v0.40.0
func (c *StreamReadCall) Return(arg0 int, arg1 error) *StreamReadCall
Return rewrite *gomock.Call.Return
type StreamSetDeadlineCall ¶ added in v0.40.0
StreamSetDeadlineCall wrap *gomock.Call
func (*StreamSetDeadlineCall) Do ¶ added in v0.40.0
func (c *StreamSetDeadlineCall) Do(f func(time.Time) error) *StreamSetDeadlineCall
Do rewrite *gomock.Call.Do
func (*StreamSetDeadlineCall) DoAndReturn ¶ added in v0.40.0
func (c *StreamSetDeadlineCall) DoAndReturn(f func(time.Time) error) *StreamSetDeadlineCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*StreamSetDeadlineCall) Return ¶ added in v0.40.0
func (c *StreamSetDeadlineCall) Return(arg0 error) *StreamSetDeadlineCall
Return rewrite *gomock.Call.Return
type StreamSetReadDeadlineCall ¶ added in v0.40.0
StreamSetReadDeadlineCall wrap *gomock.Call
func (*StreamSetReadDeadlineCall) Do ¶ added in v0.40.0
func (c *StreamSetReadDeadlineCall) Do(f func(time.Time) error) *StreamSetReadDeadlineCall
Do rewrite *gomock.Call.Do
func (*StreamSetReadDeadlineCall) DoAndReturn ¶ added in v0.40.0
func (c *StreamSetReadDeadlineCall) DoAndReturn(f func(time.Time) error) *StreamSetReadDeadlineCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*StreamSetReadDeadlineCall) Return ¶ added in v0.40.0
func (c *StreamSetReadDeadlineCall) Return(arg0 error) *StreamSetReadDeadlineCall
Return rewrite *gomock.Call.Return
type StreamSetWriteDeadlineCall ¶ added in v0.40.0
StreamSetWriteDeadlineCall wrap *gomock.Call
func (*StreamSetWriteDeadlineCall) Do ¶ added in v0.40.0
func (c *StreamSetWriteDeadlineCall) Do(f func(time.Time) error) *StreamSetWriteDeadlineCall
Do rewrite *gomock.Call.Do
func (*StreamSetWriteDeadlineCall) DoAndReturn ¶ added in v0.40.0
func (c *StreamSetWriteDeadlineCall) DoAndReturn(f func(time.Time) error) *StreamSetWriteDeadlineCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*StreamSetWriteDeadlineCall) Return ¶ added in v0.40.0
func (c *StreamSetWriteDeadlineCall) Return(arg0 error) *StreamSetWriteDeadlineCall
Return rewrite *gomock.Call.Return
type StreamStreamIDCall ¶ added in v0.40.0
StreamStreamIDCall wrap *gomock.Call
func (*StreamStreamIDCall) Do ¶ added in v0.40.0
func (c *StreamStreamIDCall) Do(f func() protocol.StreamID) *StreamStreamIDCall
Do rewrite *gomock.Call.Do
func (*StreamStreamIDCall) DoAndReturn ¶ added in v0.40.0
func (c *StreamStreamIDCall) DoAndReturn(f func() protocol.StreamID) *StreamStreamIDCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*StreamStreamIDCall) Return ¶ added in v0.40.0
func (c *StreamStreamIDCall) Return(arg0 protocol.StreamID) *StreamStreamIDCall
Return rewrite *gomock.Call.Return
type StreamWriteCall ¶ added in v0.40.0
StreamWriteCall wrap *gomock.Call
func (*StreamWriteCall) Do ¶ added in v0.40.0
func (c *StreamWriteCall) Do(f func([]byte) (int, error)) *StreamWriteCall
Do rewrite *gomock.Call.Do
func (*StreamWriteCall) DoAndReturn ¶ added in v0.40.0
func (c *StreamWriteCall) DoAndReturn(f func([]byte) (int, error)) *StreamWriteCall
DoAndReturn rewrite *gomock.Call.DoAndReturn
func (*StreamWriteCall) Return ¶ added in v0.40.0
func (c *StreamWriteCall) Return(arg0 int, arg1 error) *StreamWriteCall
Return rewrite *gomock.Call.Return