storagerepo

package
v0.0.0-...-76732a0 Latest Latest
Warning

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

Go to latest
Published: Oct 15, 2021 License: GPL-3.0 Imports: 6 Imported by: 0

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 (prm *StorageRepositoryMock) AddInvoices(invoices []domain.Invoice) ([]domain.Invoice, error)

func (*StorageRepositoryMock) DeleteInvoices

func (prm *StorageRepositoryMock) DeleteInvoices(userID, _ string) error

func (*StorageRepositoryMock) GetInvoicesByPeriod

func (prm *StorageRepositoryMock) GetInvoicesByPeriod(userID, _ string, _, _ time.Time) ([]domain.Invoice, error)

Jump to

Keyboard shortcuts

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