Documentation ¶
Index ¶
- Constants
- type TransactionRepositoryMongo
- type UserRepositoryMongo
- func (r *UserRepositoryMongo) CreatePayee(payee *entity.Payee) (*entity.Payee, error)
- func (r *UserRepositoryMongo) CreatePayer(payer *entity.Payer) (*entity.Payer, error)
- func (r *UserRepositoryMongo) GetPayeeByID(ID string) (*entity.Payee, error)
- func (r *UserRepositoryMongo) GetPayerByID(ID string) (*entity.Payer, error)
- func (r *UserRepositoryMongo) UpdatePayee(payee *entity.Payee) (*entity.Payee, error)
- func (r *UserRepositoryMongo) UpdatePayer(payer *entity.Payer) (*entity.Payer, error)
Constants ¶
View Source
const (
TRANSACTIONS_COLLECTION = "transactions"
)
View Source
const (
USERS_COLLECTION = "users"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type TransactionRepositoryMongo ¶
type TransactionRepositoryMongo struct {
// contains filtered or unexported fields
}
func NewTransactionRepositoryMongo ¶
func NewTransactionRepositoryMongo(db *mongo.Database) TransactionRepositoryMongo
func (*TransactionRepositoryMongo) Create ¶
func (r *TransactionRepositoryMongo) Create(transaction entity.Transaction) (*entity.Transaction, error)
func (*TransactionRepositoryMongo) GetByID ¶
func (r *TransactionRepositoryMongo) GetByID(ID string) (*entity.Transaction, error)
func (*TransactionRepositoryMongo) Update ¶
func (r *TransactionRepositoryMongo) Update(transaction entity.Transaction) error
type UserRepositoryMongo ¶
type UserRepositoryMongo struct {
// contains filtered or unexported fields
}
func NewUserRepositoryMongo ¶
func NewUserRepositoryMongo(db *mongo.Database) UserRepositoryMongo
func (*UserRepositoryMongo) CreatePayee ¶
func (*UserRepositoryMongo) CreatePayer ¶
func (*UserRepositoryMongo) GetPayeeByID ¶
func (r *UserRepositoryMongo) GetPayeeByID(ID string) (*entity.Payee, error)
func (*UserRepositoryMongo) GetPayerByID ¶
func (r *UserRepositoryMongo) GetPayerByID(ID string) (*entity.Payer, error)
func (*UserRepositoryMongo) UpdatePayee ¶
func (*UserRepositoryMongo) UpdatePayer ¶
Click to show internal directories.
Click to hide internal directories.