Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type StorageRepository ¶
type StorageRepository interface { AddInvoices([]domain.Invoice) ([]domain.Invoice, error) GetInvoicesByPeriod(string, string, time.Time, time.Time) ([]domain.Invoice, error) DeleteInvoices(string, string) error }
func NewPostgresRepo ¶
func NewPostgresRepo(storageClient storage.PostgresClient) StorageRepository
type StorageRepositoryMock ¶
type StorageRepositoryMock struct{}
func (*StorageRepositoryMock) AddInvoices ¶
func (*StorageRepositoryMock) DeleteInvoices ¶
func (prm *StorageRepositoryMock) DeleteInvoices(userID, _ string) error
func (*StorageRepositoryMock) GetInvoicesByPeriod ¶
Click to show internal directories.
Click to hide internal directories.