data

package
v0.0.0-...-ef67ded Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: MIT Imports: 9 Imported by: 0

Documentation

Index

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) Close

func (s *Storage) Close(ctx context.Context) (err error)

func (*Storage) CreateNewPersonDataV1

func (s *Storage) CreateNewPersonDataV1(ctx context.Context, data *models.EnrichedPersonDataV1) error

func (*Storage) DeletePersonData

func (s *Storage) DeletePersonData(ctx context.Context, id int64) error

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) Open

func (s *Storage) Open() (err error)

func (*Storage) SearchResultV1

func (s *Storage) SearchResultV1(ctx context.Context, filters *models.SearchFilters) (result *models.SearchResultV1, err error)

func (*Storage) UpdatePersonDataV1

func (s *Storage) UpdatePersonDataV1(ctx context.Context, id int64, data *models.EditedPersonDataV1) error

Jump to

Keyboard shortcuts

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