Documentation ¶
Index ¶
- type PostgresStorage
- func (p *PostgresStorage) ListBudgets(ipt ports.BudgetFilterInput) ([]ports.Budget, error)
- func (p *PostgresStorage) ListGoal(accountID string, status *int) ([]ports.Goal, error)
- func (p *PostgresStorage) ListRecipients(accountID string) ([]ports.Recipient, error)
- func (p *PostgresStorage) ListTransactions(accountID string) ([]ports.Transaction, error)
- func (p *PostgresStorage) ListUpComming(accountID string, day int) ([]ports.UpComming, error)
- func (p *PostgresStorage) SaveBudget(b ports.Budget)
- func (p *PostgresStorage) SaveGoal(g ports.Goal)
- func (p *PostgresStorage) SaveTransaction(t ports.Transaction) error
- func (p *PostgresStorage) SaveUpComming(u ports.UpComming) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PostgresStorage ¶
type PostgresStorage struct {
// contains filtered or unexported fields
}
func New ¶
func New() *PostgresStorage
func (*PostgresStorage) ListBudgets ¶
func (p *PostgresStorage) ListBudgets(ipt ports.BudgetFilterInput) ([]ports.Budget, error)
func (*PostgresStorage) ListRecipients ¶
func (p *PostgresStorage) ListRecipients(accountID string) ([]ports.Recipient, error)
func (*PostgresStorage) ListTransactions ¶
func (p *PostgresStorage) ListTransactions(accountID string) ([]ports.Transaction, error)
func (*PostgresStorage) ListUpComming ¶
func (*PostgresStorage) SaveBudget ¶
func (p *PostgresStorage) SaveBudget(b ports.Budget)
func (*PostgresStorage) SaveGoal ¶
func (p *PostgresStorage) SaveGoal(g ports.Goal)
func (*PostgresStorage) SaveTransaction ¶
func (p *PostgresStorage) SaveTransaction(t ports.Transaction) error
func (*PostgresStorage) SaveUpComming ¶
func (p *PostgresStorage) SaveUpComming(u ports.UpComming) error
Click to show internal directories.
Click to hide internal directories.