mocks

package
v1.18.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Oct 30, 2025 License: BSD-2-Clause Imports: 6 Imported by: 0

Documentation

Overview

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Code generated by counterfeiter. DO NOT EDIT.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type HttpHandler added in v1.11.0

type HttpHandler struct {
	ServeHTTPStub func(httpa.ResponseWriter, *httpa.Request)
	// contains filtered or unexported fields
}

func (*HttpHandler) Invocations added in v1.11.0

func (fake *HttpHandler) Invocations() map[string][][]interface{}

func (*HttpHandler) ServeHTTP added in v1.11.0

func (fake *HttpHandler) ServeHTTP(arg1 httpa.ResponseWriter, arg2 *httpa.Request)

func (*HttpHandler) ServeHTTPArgsForCall added in v1.11.0

func (fake *HttpHandler) ServeHTTPArgsForCall(i int) (httpa.ResponseWriter, *httpa.Request)

func (*HttpHandler) ServeHTTPCallCount added in v1.11.0

func (fake *HttpHandler) ServeHTTPCallCount() int

func (*HttpHandler) ServeHTTPCalls added in v1.11.0

func (fake *HttpHandler) ServeHTTPCalls(stub func(httpa.ResponseWriter, *httpa.Request))

type HttpJsonHandler

type HttpJsonHandler struct {
	ServeHTTPStub func(context.Context, *httpa.Request) (interface{}, error)
	// contains filtered or unexported fields
}

func (*HttpJsonHandler) Invocations

func (fake *HttpJsonHandler) Invocations() map[string][][]interface{}

func (*HttpJsonHandler) ServeHTTP

func (fake *HttpJsonHandler) ServeHTTP(arg1 context.Context, arg2 *httpa.Request) (interface{}, error)

func (*HttpJsonHandler) ServeHTTPArgsForCall

func (fake *HttpJsonHandler) ServeHTTPArgsForCall(i int) (context.Context, *httpa.Request)

func (*HttpJsonHandler) ServeHTTPCallCount

func (fake *HttpJsonHandler) ServeHTTPCallCount() int

func (*HttpJsonHandler) ServeHTTPCalls

func (fake *HttpJsonHandler) ServeHTTPCalls(stub func(context.Context, *httpa.Request) (interface{}, error))

func (*HttpJsonHandler) ServeHTTPReturns

func (fake *HttpJsonHandler) ServeHTTPReturns(result1 interface{}, result2 error)

func (*HttpJsonHandler) ServeHTTPReturnsOnCall

func (fake *HttpJsonHandler) ServeHTTPReturnsOnCall(i int, result1 interface{}, result2 error)

type HttpJsonHandlerTx added in v1.8.0

type HttpJsonHandlerTx struct {
	ServeHTTPStub func(context.Context, kv.Tx, *httpa.Request) (interface{}, error)
	// contains filtered or unexported fields
}

func (*HttpJsonHandlerTx) Invocations added in v1.8.0

func (fake *HttpJsonHandlerTx) Invocations() map[string][][]interface{}

func (*HttpJsonHandlerTx) ServeHTTP added in v1.8.0

func (fake *HttpJsonHandlerTx) ServeHTTP(arg1 context.Context, arg2 kv.Tx, arg3 *httpa.Request) (interface{}, error)

func (*HttpJsonHandlerTx) ServeHTTPArgsForCall added in v1.8.0

func (fake *HttpJsonHandlerTx) ServeHTTPArgsForCall(i int) (context.Context, kv.Tx, *httpa.Request)

func (*HttpJsonHandlerTx) ServeHTTPCallCount added in v1.8.0

func (fake *HttpJsonHandlerTx) ServeHTTPCallCount() int

func (*HttpJsonHandlerTx) ServeHTTPCalls added in v1.8.0

func (fake *HttpJsonHandlerTx) ServeHTTPCalls(stub func(context.Context, kv.Tx, *httpa.Request) (interface{}, error))

func (*HttpJsonHandlerTx) ServeHTTPReturns added in v1.8.0

func (fake *HttpJsonHandlerTx) ServeHTTPReturns(result1 interface{}, result2 error)

func (*HttpJsonHandlerTx) ServeHTTPReturnsOnCall added in v1.8.0

func (fake *HttpJsonHandlerTx) ServeHTTPReturnsOnCall(i int, result1 interface{}, result2 error)

type HttpProxyErrorHandler

type HttpProxyErrorHandler struct {
	HandleErrorStub func(httpa.ResponseWriter, *httpa.Request, error)
	// contains filtered or unexported fields
}

func (*HttpProxyErrorHandler) HandleError

func (fake *HttpProxyErrorHandler) HandleError(arg1 httpa.ResponseWriter, arg2 *httpa.Request, arg3 error)

func (*HttpProxyErrorHandler) HandleErrorArgsForCall

func (fake *HttpProxyErrorHandler) HandleErrorArgsForCall(i int) (httpa.ResponseWriter, *httpa.Request, error)

func (*HttpProxyErrorHandler) HandleErrorCallCount

func (fake *HttpProxyErrorHandler) HandleErrorCallCount() int

func (*HttpProxyErrorHandler) HandleErrorCalls

func (fake *HttpProxyErrorHandler) HandleErrorCalls(stub func(httpa.ResponseWriter, *httpa.Request, error))

func (*HttpProxyErrorHandler) Invocations

func (fake *HttpProxyErrorHandler) Invocations() map[string][][]interface{}

type HttpRoundTripper

type HttpRoundTripper struct {
	RoundTripStub func(*httpa.Request) (*httpa.Response, error)
	// contains filtered or unexported fields
}

func (*HttpRoundTripper) Invocations

func (fake *HttpRoundTripper) Invocations() map[string][][]interface{}

func (*HttpRoundTripper) RoundTrip

func (fake *HttpRoundTripper) RoundTrip(arg1 *httpa.Request) (*httpa.Response, error)

func (*HttpRoundTripper) RoundTripArgsForCall

func (fake *HttpRoundTripper) RoundTripArgsForCall(i int) *httpa.Request

func (*HttpRoundTripper) RoundTripCallCount

func (fake *HttpRoundTripper) RoundTripCallCount() int

func (*HttpRoundTripper) RoundTripCalls

func (fake *HttpRoundTripper) RoundTripCalls(stub func(*httpa.Request) (*httpa.Response, error))

func (*HttpRoundTripper) RoundTripReturns

func (fake *HttpRoundTripper) RoundTripReturns(result1 *httpa.Response, result2 error)

func (*HttpRoundTripper) RoundTripReturnsOnCall

func (fake *HttpRoundTripper) RoundTripReturnsOnCall(i int, result1 *httpa.Response, result2 error)

type HttpRoundTripperMetrics added in v1.13.0

type HttpRoundTripperMetrics struct {
	DurationMeasureObserveStub func(string, string, time.Duration)

	FailureCounterIncStub func(string, string)

	SuccessCounterIncStub func(string, string, int)

	TotalCounterIncStub func(string, string)
	// contains filtered or unexported fields
}

func (*HttpRoundTripperMetrics) DurationMeasureObserve added in v1.13.0

func (fake *HttpRoundTripperMetrics) DurationMeasureObserve(arg1 string, arg2 string, arg3 time.Duration)

func (*HttpRoundTripperMetrics) DurationMeasureObserveArgsForCall added in v1.13.0

func (fake *HttpRoundTripperMetrics) DurationMeasureObserveArgsForCall(i int) (string, string, time.Duration)

func (*HttpRoundTripperMetrics) DurationMeasureObserveCallCount added in v1.13.0

func (fake *HttpRoundTripperMetrics) DurationMeasureObserveCallCount() int

func (*HttpRoundTripperMetrics) DurationMeasureObserveCalls added in v1.13.0

func (fake *HttpRoundTripperMetrics) DurationMeasureObserveCalls(stub func(string, string, time.Duration))

func (*HttpRoundTripperMetrics) FailureCounterInc added in v1.13.0

func (fake *HttpRoundTripperMetrics) FailureCounterInc(arg1 string, arg2 string)

func (*HttpRoundTripperMetrics) FailureCounterIncArgsForCall added in v1.13.0

func (fake *HttpRoundTripperMetrics) FailureCounterIncArgsForCall(i int) (string, string)

func (*HttpRoundTripperMetrics) FailureCounterIncCallCount added in v1.13.0

func (fake *HttpRoundTripperMetrics) FailureCounterIncCallCount() int

func (*HttpRoundTripperMetrics) FailureCounterIncCalls added in v1.13.0

func (fake *HttpRoundTripperMetrics) FailureCounterIncCalls(stub func(string, string))

func (*HttpRoundTripperMetrics) Invocations added in v1.13.0

func (fake *HttpRoundTripperMetrics) Invocations() map[string][][]interface{}

func (*HttpRoundTripperMetrics) SuccessCounterInc added in v1.13.0

func (fake *HttpRoundTripperMetrics) SuccessCounterInc(arg1 string, arg2 string, arg3 int)

func (*HttpRoundTripperMetrics) SuccessCounterIncArgsForCall added in v1.13.0

func (fake *HttpRoundTripperMetrics) SuccessCounterIncArgsForCall(i int) (string, string, int)

func (*HttpRoundTripperMetrics) SuccessCounterIncCallCount added in v1.13.0

func (fake *HttpRoundTripperMetrics) SuccessCounterIncCallCount() int

func (*HttpRoundTripperMetrics) SuccessCounterIncCalls added in v1.13.0

func (fake *HttpRoundTripperMetrics) SuccessCounterIncCalls(stub func(string, string, int))

func (*HttpRoundTripperMetrics) TotalCounterInc added in v1.13.0

func (fake *HttpRoundTripperMetrics) TotalCounterInc(arg1 string, arg2 string)

func (*HttpRoundTripperMetrics) TotalCounterIncArgsForCall added in v1.13.0

func (fake *HttpRoundTripperMetrics) TotalCounterIncArgsForCall(i int) (string, string)

func (*HttpRoundTripperMetrics) TotalCounterIncCallCount added in v1.13.0

func (fake *HttpRoundTripperMetrics) TotalCounterIncCallCount() int

func (*HttpRoundTripperMetrics) TotalCounterIncCalls added in v1.13.0

func (fake *HttpRoundTripperMetrics) TotalCounterIncCalls(stub func(string, string))

type HttpWithError

type HttpWithError struct {
	ServeHTTPStub func(context.Context, httpa.ResponseWriter, *httpa.Request) error
	// contains filtered or unexported fields
}

func (*HttpWithError) Invocations

func (fake *HttpWithError) Invocations() map[string][][]interface{}

func (*HttpWithError) ServeHTTP

func (fake *HttpWithError) ServeHTTP(arg1 context.Context, arg2 httpa.ResponseWriter, arg3 *httpa.Request) error

func (*HttpWithError) ServeHTTPArgsForCall

func (fake *HttpWithError) ServeHTTPArgsForCall(i int) (context.Context, httpa.ResponseWriter, *httpa.Request)

func (*HttpWithError) ServeHTTPCallCount

func (fake *HttpWithError) ServeHTTPCallCount() int

func (*HttpWithError) ServeHTTPCalls

func (fake *HttpWithError) ServeHTTPCalls(stub func(context.Context, httpa.ResponseWriter, *httpa.Request) error)

func (*HttpWithError) ServeHTTPReturns

func (fake *HttpWithError) ServeHTTPReturns(result1 error)

func (*HttpWithError) ServeHTTPReturnsOnCall

func (fake *HttpWithError) ServeHTTPReturnsOnCall(i int, result1 error)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL