Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Package mocks is a generated GoMock package.
Index ¶
- type MockMiddleware
- type MockMiddlewareMockRecorder
- type MockMiddlewareRunner
- func (m *MockMiddlewareRunner) AddMiddleware(name string, middleware types.Middleware)
- func (m *MockMiddlewareRunner) EXPECT() *MockMiddlewareRunnerMockRecorder
- func (m *MockMiddlewareRunner) GetConfig() types.RunnerConfig
- func (m *MockMiddlewareRunner) SetAuthInfoHandler(handler http.Handler)
- func (m *MockMiddlewareRunner) SetPrometheusHandler(handler http.Handler)
- type MockMiddlewareRunnerMockRecorder
- func (mr *MockMiddlewareRunnerMockRecorder) AddMiddleware(name, middleware any) *gomock.Call
- func (mr *MockMiddlewareRunnerMockRecorder) GetConfig() *gomock.Call
- func (mr *MockMiddlewareRunnerMockRecorder) SetAuthInfoHandler(handler any) *gomock.Call
- func (mr *MockMiddlewareRunnerMockRecorder) SetPrometheusHandler(handler any) *gomock.Call
- type MockProxy
- func (m *MockProxy) EXPECT() *MockProxyMockRecorder
- func (m *MockProxy) ForwardResponseToClients(ctx context.Context, msg jsonrpc2.Message) error
- func (m *MockProxy) GetMessageChannel() chan jsonrpc2.Message
- func (m *MockProxy) SendMessageToDestination(msg jsonrpc2.Message) error
- func (m *MockProxy) Start(ctx context.Context) error
- func (m *MockProxy) Stop(ctx context.Context) error
- type MockProxyMockRecorder
- func (mr *MockProxyMockRecorder) ForwardResponseToClients(ctx, msg any) *gomock.Call
- func (mr *MockProxyMockRecorder) GetMessageChannel() *gomock.Call
- func (mr *MockProxyMockRecorder) SendMessageToDestination(msg any) *gomock.Call
- func (mr *MockProxyMockRecorder) Start(ctx any) *gomock.Call
- func (mr *MockProxyMockRecorder) Stop(ctx any) *gomock.Call
- type MockRunnerConfig
- type MockRunnerConfigMockRecorder
- type MockTransport
- func (m *MockTransport) EXPECT() *MockTransportMockRecorder
- func (m *MockTransport) IsRunning(ctx context.Context) (bool, error)
- func (m *MockTransport) Mode() types.TransportType
- func (m *MockTransport) ProxyPort() int
- func (m *MockTransport) Start(ctx context.Context) error
- func (m *MockTransport) Stop(ctx context.Context) error
- type MockTransportMockRecorder
- func (mr *MockTransportMockRecorder) IsRunning(ctx any) *gomock.Call
- func (mr *MockTransportMockRecorder) Mode() *gomock.Call
- func (mr *MockTransportMockRecorder) ProxyPort() *gomock.Call
- func (mr *MockTransportMockRecorder) Start(ctx any) *gomock.Call
- func (mr *MockTransportMockRecorder) Stop(ctx any) *gomock.Call
- type MockTunnelProvider
- type MockTunnelProviderMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockMiddleware ¶ added in v0.2.8
type MockMiddleware struct {
// contains filtered or unexported fields
}
MockMiddleware is a mock of Middleware interface.
func NewMockMiddleware ¶ added in v0.2.8
func NewMockMiddleware(ctrl *gomock.Controller) *MockMiddleware
NewMockMiddleware creates a new mock instance.
func (*MockMiddleware) Close ¶ added in v0.2.8
func (m *MockMiddleware) Close() error
Close mocks base method.
func (*MockMiddleware) EXPECT ¶ added in v0.2.8
func (m *MockMiddleware) EXPECT() *MockMiddlewareMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMiddleware) Handler ¶ added in v0.2.8
func (m *MockMiddleware) Handler() types.MiddlewareFunction
Handler mocks base method.
type MockMiddlewareMockRecorder ¶ added in v0.2.8
type MockMiddlewareMockRecorder struct {
// contains filtered or unexported fields
}
MockMiddlewareMockRecorder is the mock recorder for MockMiddleware.
func (*MockMiddlewareMockRecorder) Close ¶ added in v0.2.8
func (mr *MockMiddlewareMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockMiddlewareMockRecorder) Handler ¶ added in v0.2.8
func (mr *MockMiddlewareMockRecorder) Handler() *gomock.Call
Handler indicates an expected call of Handler.
type MockMiddlewareRunner ¶ added in v0.2.8
type MockMiddlewareRunner struct {
// contains filtered or unexported fields
}
MockMiddlewareRunner is a mock of MiddlewareRunner interface.
func NewMockMiddlewareRunner ¶ added in v0.2.8
func NewMockMiddlewareRunner(ctrl *gomock.Controller) *MockMiddlewareRunner
NewMockMiddlewareRunner creates a new mock instance.
func (*MockMiddlewareRunner) AddMiddleware ¶ added in v0.2.8
func (m *MockMiddlewareRunner) AddMiddleware(name string, middleware types.Middleware)
AddMiddleware mocks base method.
func (*MockMiddlewareRunner) EXPECT ¶ added in v0.2.8
func (m *MockMiddlewareRunner) EXPECT() *MockMiddlewareRunnerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMiddlewareRunner) GetConfig ¶ added in v0.2.8
func (m *MockMiddlewareRunner) GetConfig() types.RunnerConfig
GetConfig mocks base method.
func (*MockMiddlewareRunner) SetAuthInfoHandler ¶ added in v0.2.8
func (m *MockMiddlewareRunner) SetAuthInfoHandler(handler http.Handler)
SetAuthInfoHandler mocks base method.
func (*MockMiddlewareRunner) SetPrometheusHandler ¶ added in v0.2.8
func (m *MockMiddlewareRunner) SetPrometheusHandler(handler http.Handler)
SetPrometheusHandler mocks base method.
type MockMiddlewareRunnerMockRecorder ¶ added in v0.2.8
type MockMiddlewareRunnerMockRecorder struct {
// contains filtered or unexported fields
}
MockMiddlewareRunnerMockRecorder is the mock recorder for MockMiddlewareRunner.
func (*MockMiddlewareRunnerMockRecorder) AddMiddleware ¶ added in v0.2.8
func (mr *MockMiddlewareRunnerMockRecorder) AddMiddleware(name, middleware any) *gomock.Call
AddMiddleware indicates an expected call of AddMiddleware.
func (*MockMiddlewareRunnerMockRecorder) GetConfig ¶ added in v0.2.8
func (mr *MockMiddlewareRunnerMockRecorder) GetConfig() *gomock.Call
GetConfig indicates an expected call of GetConfig.
func (*MockMiddlewareRunnerMockRecorder) SetAuthInfoHandler ¶ added in v0.2.8
func (mr *MockMiddlewareRunnerMockRecorder) SetAuthInfoHandler(handler any) *gomock.Call
SetAuthInfoHandler indicates an expected call of SetAuthInfoHandler.
func (*MockMiddlewareRunnerMockRecorder) SetPrometheusHandler ¶ added in v0.2.8
func (mr *MockMiddlewareRunnerMockRecorder) SetPrometheusHandler(handler any) *gomock.Call
SetPrometheusHandler indicates an expected call of SetPrometheusHandler.
type MockProxy ¶ added in v0.2.8
type MockProxy struct {
// contains filtered or unexported fields
}
MockProxy is a mock of Proxy interface.
func NewMockProxy ¶ added in v0.2.8
func NewMockProxy(ctrl *gomock.Controller) *MockProxy
NewMockProxy creates a new mock instance.
func (*MockProxy) EXPECT ¶ added in v0.2.8
func (m *MockProxy) EXPECT() *MockProxyMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockProxy) ForwardResponseToClients ¶ added in v0.2.8
ForwardResponseToClients mocks base method.
func (*MockProxy) GetMessageChannel ¶ added in v0.2.8
GetMessageChannel mocks base method.
func (*MockProxy) SendMessageToDestination ¶ added in v0.2.8
SendMessageToDestination mocks base method.
type MockProxyMockRecorder ¶ added in v0.2.8
type MockProxyMockRecorder struct {
// contains filtered or unexported fields
}
MockProxyMockRecorder is the mock recorder for MockProxy.
func (*MockProxyMockRecorder) ForwardResponseToClients ¶ added in v0.2.8
func (mr *MockProxyMockRecorder) ForwardResponseToClients(ctx, msg any) *gomock.Call
ForwardResponseToClients indicates an expected call of ForwardResponseToClients.
func (*MockProxyMockRecorder) GetMessageChannel ¶ added in v0.2.8
func (mr *MockProxyMockRecorder) GetMessageChannel() *gomock.Call
GetMessageChannel indicates an expected call of GetMessageChannel.
func (*MockProxyMockRecorder) SendMessageToDestination ¶ added in v0.2.8
func (mr *MockProxyMockRecorder) SendMessageToDestination(msg any) *gomock.Call
SendMessageToDestination indicates an expected call of SendMessageToDestination.
type MockRunnerConfig ¶ added in v0.2.8
type MockRunnerConfig struct {
// contains filtered or unexported fields
}
MockRunnerConfig is a mock of RunnerConfig interface.
func NewMockRunnerConfig ¶ added in v0.2.8
func NewMockRunnerConfig(ctrl *gomock.Controller) *MockRunnerConfig
NewMockRunnerConfig creates a new mock instance.
func (*MockRunnerConfig) EXPECT ¶ added in v0.2.8
func (m *MockRunnerConfig) EXPECT() *MockRunnerConfigMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockRunnerConfig) GetPort ¶ added in v0.2.8
func (m *MockRunnerConfig) GetPort() int
GetPort mocks base method.
type MockRunnerConfigMockRecorder ¶ added in v0.2.8
type MockRunnerConfigMockRecorder struct {
// contains filtered or unexported fields
}
MockRunnerConfigMockRecorder is the mock recorder for MockRunnerConfig.
func (*MockRunnerConfigMockRecorder) GetPort ¶ added in v0.2.8
func (mr *MockRunnerConfigMockRecorder) GetPort() *gomock.Call
GetPort indicates an expected call of GetPort.
type MockTransport ¶ added in v0.2.8
type MockTransport struct {
// contains filtered or unexported fields
}
MockTransport is a mock of Transport interface.
func NewMockTransport ¶ added in v0.2.8
func NewMockTransport(ctrl *gomock.Controller) *MockTransport
NewMockTransport creates a new mock instance.
func (*MockTransport) EXPECT ¶ added in v0.2.8
func (m *MockTransport) EXPECT() *MockTransportMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTransport) IsRunning ¶ added in v0.2.8
func (m *MockTransport) IsRunning(ctx context.Context) (bool, error)
IsRunning mocks base method.
func (*MockTransport) Mode ¶ added in v0.2.8
func (m *MockTransport) Mode() types.TransportType
Mode mocks base method.
func (*MockTransport) ProxyPort ¶ added in v0.2.8
func (m *MockTransport) ProxyPort() int
ProxyPort mocks base method.
type MockTransportMockRecorder ¶ added in v0.2.8
type MockTransportMockRecorder struct {
// contains filtered or unexported fields
}
MockTransportMockRecorder is the mock recorder for MockTransport.
func (*MockTransportMockRecorder) IsRunning ¶ added in v0.2.8
func (mr *MockTransportMockRecorder) IsRunning(ctx any) *gomock.Call
IsRunning indicates an expected call of IsRunning.
func (*MockTransportMockRecorder) Mode ¶ added in v0.2.8
func (mr *MockTransportMockRecorder) Mode() *gomock.Call
Mode indicates an expected call of Mode.
func (*MockTransportMockRecorder) ProxyPort ¶ added in v0.2.8
func (mr *MockTransportMockRecorder) ProxyPort() *gomock.Call
ProxyPort indicates an expected call of ProxyPort.
type MockTunnelProvider ¶
type MockTunnelProvider struct {
// contains filtered or unexported fields
}
MockTunnelProvider is a mock of TunnelProvider interface.
func NewMockTunnelProvider ¶
func NewMockTunnelProvider(ctrl *gomock.Controller) *MockTunnelProvider
NewMockTunnelProvider creates a new mock instance.
func (*MockTunnelProvider) EXPECT ¶
func (m *MockTunnelProvider) EXPECT() *MockTunnelProviderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockTunnelProvider) ParseConfig ¶
func (m *MockTunnelProvider) ParseConfig(config map[string]any) error
ParseConfig mocks base method.
func (*MockTunnelProvider) StartTunnel ¶
func (m *MockTunnelProvider) StartTunnel(ctx context.Context, name, targetURI string) error
StartTunnel mocks base method.
type MockTunnelProviderMockRecorder ¶
type MockTunnelProviderMockRecorder struct {
// contains filtered or unexported fields
}
MockTunnelProviderMockRecorder is the mock recorder for MockTunnelProvider.
func (*MockTunnelProviderMockRecorder) ParseConfig ¶
func (mr *MockTunnelProviderMockRecorder) ParseConfig(config any) *gomock.Call
ParseConfig indicates an expected call of ParseConfig.
func (*MockTunnelProviderMockRecorder) StartTunnel ¶
func (mr *MockTunnelProviderMockRecorder) StartTunnel(ctx, name, targetURI any) *gomock.Call
StartTunnel indicates an expected call of StartTunnel.