Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type APIDataHandler ¶
type APIDataHandler[K types.ResponseKey, V types.ResponseValue] struct { mock.Mock }
APIDataHandler is an autogenerated mock type for the APIDataHandler type
func NewAPIDataHandler ¶
func NewAPIDataHandler[K types.ResponseKey, V types.ResponseValue](t interface { mock.TestingT Cleanup(func()) }) *APIDataHandler[K, V]
NewAPIDataHandler creates a new instance of APIDataHandler. 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 (*APIDataHandler[K, V]) CreateURL ¶
func (_m *APIDataHandler[K, V]) CreateURL(ids []K) (string, error)
CreateURL provides a mock function with given fields: ids
func (*APIDataHandler[K, V]) ParseResponse ¶
func (_m *APIDataHandler[K, V]) ParseResponse(ids []K, response *http.Response) types.GetResponse[K, V]
ParseResponse provides a mock function with given fields: ids, response
type APIFetcher ¶
type APIFetcher[K types.ResponseKey, V types.ResponseValue] struct { mock.Mock }
APIFetcher is an autogenerated mock type for the APIFetcher type
func NewAPIFetcher ¶
func NewAPIFetcher[K types.ResponseKey, V types.ResponseValue](t interface { mock.TestingT Cleanup(func()) }) *APIFetcher[K, V]
NewAPIFetcher creates a new instance of APIFetcher. 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 (*APIFetcher[K, V]) Fetch ¶
func (_m *APIFetcher[K, V]) Fetch(ctx context.Context, ids []K) types.GetResponse[K, V]
Fetch provides a mock function with given fields: ctx, ids
type APIQueryHandler ¶
type APIQueryHandler[K types.ResponseKey, V types.ResponseValue] struct { mock.Mock }
APIQueryHandler is an autogenerated mock type for the APIQueryHandler type
func NewAPIQueryHandler ¶
func NewAPIQueryHandler[K types.ResponseKey, V types.ResponseValue](t interface { mock.TestingT Cleanup(func()) }) *APIQueryHandler[K, V]
NewAPIQueryHandler creates a new instance of APIQueryHandler. 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 (*APIQueryHandler[K, V]) Query ¶
func (_m *APIQueryHandler[K, V]) Query(ctx context.Context, ids []K, responseCh chan<- types.GetResponse[K, V])
Query provides a mock function with given fields: ctx, ids, responseCh
type QueryHandler ¶
type QueryHandler[K types.ResponseKey, V types.ResponseValue] struct { mock.Mock }
QueryHandler is an autogenerated mock type for the QueryHandler type
func NewQueryHandler ¶
func NewQueryHandler[K types.ResponseKey, V types.ResponseValue](t interface { mock.TestingT Cleanup(func()) }, ) *QueryHandler[K, V]
NewQueryHandler creates a new instance of QueryHandler. 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 (*QueryHandler[K, V]) Query ¶
func (_m *QueryHandler[K, V]) Query(ctx context.Context, ids []K, responseCh chan<- types.GetResponse[K, V])
Query provides a mock function with given fields: ctx, ids, responseCh
type RequestHandler ¶
RequestHandler is an autogenerated mock type for the RequestHandler type
func NewRequestHandler ¶
func NewRequestHandler(t interface { mock.TestingT Cleanup(func()) }) *RequestHandler
NewRequestHandler creates a new instance of RequestHandler. 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 (*RequestHandler) Type ¶
func (_m *RequestHandler) Type() string
Type provides a mock function with no fields