Documentation
¶
Index ¶
- type Dialer
- type Dialer_Dial_Call
- type Dialer_Expecter
- type Proxy
- type Proxy_Expecter
- type Proxy_ForwardHTTP_Call
- func (_c *Proxy_ForwardHTTP_Call) Return(_a0 *http.Response, _a1 error) *Proxy_ForwardHTTP_Call
- func (_c *Proxy_ForwardHTTP_Call) Run(run func(ctx context.Context, r *http.Request, dstHost *addr.Addr)) *Proxy_ForwardHTTP_Call
- func (_c *Proxy_ForwardHTTP_Call) RunAndReturn(run func(context.Context, *http.Request, *addr.Addr) (*http.Response, error)) *Proxy_ForwardHTTP_Call
- type Proxy_OpenTunnel_Call
- func (_c *Proxy_OpenTunnel_Call) Return(done <-chan error, err error) *Proxy_OpenTunnel_Call
- func (_c *Proxy_OpenTunnel_Call) Run(run func(ctx context.Context, srcConn net.Conn, dstHost *addr.Addr)) *Proxy_OpenTunnel_Call
- func (_c *Proxy_OpenTunnel_Call) RunAndReturn(run func(context.Context, net.Conn, *addr.Addr) (<-chan error, error)) *Proxy_OpenTunnel_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Dialer ¶
Dialer is an autogenerated mock type for the Dialer type
func NewDialer ¶
NewDialer creates a new instance of Dialer. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Dialer) EXPECT ¶
func (_m *Dialer) EXPECT() *Dialer_Expecter
type Dialer_Dial_Call ¶
Dialer_Dial_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Dial'
func (*Dialer_Dial_Call) Return ¶
func (_c *Dialer_Dial_Call) Return(_a0 net.Conn, _a1 error) *Dialer_Dial_Call
func (*Dialer_Dial_Call) Run ¶
func (_c *Dialer_Dial_Call) Run(run func(_a0 context.Context, _a1 *addr.Addr)) *Dialer_Dial_Call
func (*Dialer_Dial_Call) RunAndReturn ¶
func (_c *Dialer_Dial_Call) RunAndReturn(run func(context.Context, *addr.Addr) (net.Conn, error)) *Dialer_Dial_Call
type Dialer_Expecter ¶
type Dialer_Expecter struct {
// contains filtered or unexported fields
}
func (*Dialer_Expecter) Dial ¶
func (_e *Dialer_Expecter) Dial(_a0 interface{}, _a1 interface{}) *Dialer_Dial_Call
Dial is a helper method to define mock.On call
- _a0 context.Context
- _a1 *addr.Host
type Proxy ¶
Proxy is an autogenerated mock type for the Proxy type
func NewProxy ¶
NewProxy creates a new instance of Proxy. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations. The first argument is typically a *testing.T value.
func (*Proxy) EXPECT ¶
func (_m *Proxy) EXPECT() *Proxy_Expecter
type Proxy_Expecter ¶
type Proxy_Expecter struct {
// contains filtered or unexported fields
}
func (*Proxy_Expecter) ForwardHTTP ¶
func (_e *Proxy_Expecter) ForwardHTTP(ctx interface{}, r interface{}, dstHost interface{}) *Proxy_ForwardHTTP_Call
ForwardHTTP is a helper method to define mock.On call
- ctx context.Context
- r *http.Request
- dstHost *addr.Host
func (*Proxy_Expecter) OpenTunnel ¶
func (_e *Proxy_Expecter) OpenTunnel(ctx interface{}, srcConn interface{}, dstHost interface{}) *Proxy_OpenTunnel_Call
OpenTunnel is a helper method to define mock.On call
- ctx context.Context
- srcConn net.Conn
- dstHost *addr.Host
type Proxy_ForwardHTTP_Call ¶
Proxy_ForwardHTTP_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ForwardHTTP'
func (*Proxy_ForwardHTTP_Call) Return ¶
func (_c *Proxy_ForwardHTTP_Call) Return(_a0 *http.Response, _a1 error) *Proxy_ForwardHTTP_Call
func (*Proxy_ForwardHTTP_Call) Run ¶
func (_c *Proxy_ForwardHTTP_Call) Run(run func(ctx context.Context, r *http.Request, dstHost *addr.Addr)) *Proxy_ForwardHTTP_Call
func (*Proxy_ForwardHTTP_Call) RunAndReturn ¶
type Proxy_OpenTunnel_Call ¶
Proxy_OpenTunnel_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'OpenTunnel'
func (*Proxy_OpenTunnel_Call) Return ¶
func (_c *Proxy_OpenTunnel_Call) Return(done <-chan error, err error) *Proxy_OpenTunnel_Call
func (*Proxy_OpenTunnel_Call) Run ¶
func (_c *Proxy_OpenTunnel_Call) Run(run func(ctx context.Context, srcConn net.Conn, dstHost *addr.Addr)) *Proxy_OpenTunnel_Call
func (*Proxy_OpenTunnel_Call) RunAndReturn ¶
func (_c *Proxy_OpenTunnel_Call) RunAndReturn(run func(context.Context, net.Conn, *addr.Addr) (<-chan error, error)) *Proxy_OpenTunnel_Call