Documentation ¶
Index ¶
- type ErrPersonDataNotFound
- type Storage
- func (s *Storage) Close(ctx context.Context) (err error)
- func (s *Storage) CreateNewPersonDataV1(ctx context.Context, data *models.EnrichedPersonDataV1) error
- func (s *Storage) DeletePersonData(ctx context.Context, id int64) error
- func (s *Storage) EnrichedPersonDataV1(ctx context.Context, id int64) (*models.EnrichedPersonDataV1, error)
- func (s *Storage) Open() (err error)
- func (s *Storage) SearchResultV1(ctx context.Context, filters *models.SearchFilters) (result *models.SearchResultV1, err error)
- func (s *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 ErrPersonDataNotFound ¶
type ErrPersonDataNotFound struct{}
func (ErrPersonDataNotFound) Error ¶
func (e ErrPersonDataNotFound) Error() string
func (ErrPersonDataNotFound) ImplementsPersonDataNotFoundError ¶
func (e ErrPersonDataNotFound) ImplementsPersonDataNotFoundError()
type Storage ¶
type Storage struct {
// contains filtered or unexported fields
}
func (*Storage) CreateNewPersonDataV1 ¶
func (*Storage) DeletePersonData ¶
func (*Storage) EnrichedPersonDataV1 ¶
func (s *Storage) EnrichedPersonDataV1(ctx context.Context, id int64) (*models.EnrichedPersonDataV1, error)
Returns nil, nil if data is not found.
func (*Storage) SearchResultV1 ¶
func (s *Storage) SearchResultV1(ctx context.Context, filters *models.SearchFilters) (result *models.SearchResultV1, err error)
func (*Storage) UpdatePersonDataV1 ¶
Click to show internal directories.
Click to hide internal directories.