Documentation ¶
Index ¶
- type StatisticsProvider
- type Storage
- func (_m *Storage) CreateNewPersonDataV1(ctx context.Context, data *models.EnrichedPersonDataV1) error
- func (_m *Storage) DeletePersonData(ctx context.Context, id int64) error
- func (_m *Storage) EnrichedPersonDataV1(ctx context.Context, id int64) (*models.EnrichedPersonDataV1, error)
- func (_m *Storage) SearchResultV1(ctx context.Context, filters *models.SearchFilters) (*models.SearchResultV1, error)
- func (_m *Storage) UpdatePersonDataV1(ctx context.Context, id int64, data *models.EditedPersonDataV1) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StatisticsProvider ¶
StatisticsProvider is an autogenerated mock type for the StatisticsProvider type
func NewStatisticsProvider ¶
func NewStatisticsProvider(t interface { mock.TestingT Cleanup(func()) }) *StatisticsProvider
NewStatisticsProvider creates a new instance of StatisticsProvider. 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 (*StatisticsProvider) AgeByName ¶
func (_m *StatisticsProvider) AgeByName(name string) (int, error)
AgeByName provides a mock function with given fields: name
func (*StatisticsProvider) CountryByName ¶
func (_m *StatisticsProvider) CountryByName(name string) (string, error)
CountryByName provides a mock function with given fields: name
func (*StatisticsProvider) GenderByName ¶
func (_m *StatisticsProvider) GenderByName(name string) (string, error)
GenderByName provides a mock function with given fields: name
type Storage ¶
Storage is an autogenerated mock type for the Storage type
func NewStorage ¶
NewStorage creates a new instance of Storage. 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 (*Storage) CreateNewPersonDataV1 ¶
func (_m *Storage) CreateNewPersonDataV1(ctx context.Context, data *models.EnrichedPersonDataV1) error
CreateNewPersonDataV1 provides a mock function with given fields: ctx, data
func (*Storage) DeletePersonData ¶
DeletePersonData provides a mock function with given fields: ctx, id
func (*Storage) EnrichedPersonDataV1 ¶
func (_m *Storage) EnrichedPersonDataV1(ctx context.Context, id int64) (*models.EnrichedPersonDataV1, error)
EnrichedPersonDataV1 provides a mock function with given fields: ctx, id
func (*Storage) SearchResultV1 ¶
func (_m *Storage) SearchResultV1(ctx context.Context, filters *models.SearchFilters) (*models.SearchResultV1, error)
SearchResultV1 provides a mock function with given fields: ctx, filters
func (*Storage) UpdatePersonDataV1 ¶
func (_m *Storage) UpdatePersonDataV1(ctx context.Context, id int64, data *models.EditedPersonDataV1) error
UpdatePersonDataV1 provides a mock function with given fields: ctx, id, data