Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Store ¶
type Store struct {
// contains filtered or unexported fields
}
func (*Store) Transaction ¶
func (s *Store) Transaction() store.TransactionRepository
type TransactionRepository ¶
type TransactionRepository struct {
// contains filtered or unexported fields
}
func NewTransactionRepository ¶
func NewTransactionRepository(db *mongo.Database) *TransactionRepository
func (*TransactionRepository) All ¶
func (r *TransactionRepository) All(ctx context.Context) ([]model.Transaction, error)
func (*TransactionRepository) Create ¶
func (r *TransactionRepository) Create(ctx context.Context, transaction *model.Transaction) error
func (*TransactionRepository) FindByID ¶
func (r *TransactionRepository) FindByID(ctx context.Context, id string) (*model.Transaction, error)
Click to show internal directories.
Click to hide internal directories.