Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface { AddTransaction(ctx context.Context, tx model.Transaction) error GetTransaction(ctx context.Context, txID string) (model.Transaction, error) GetTransactions(ctx context.Context, userID string) ([]model.Transaction, error) DeleteTransaction(ctx context.Context, txID string) error }
func NewPostgres ¶
func NewPostgres(db *gorm.DB, logger *zap.Logger) Repository
Click to show internal directories.
Click to hide internal directories.