Documentation ¶
Index ¶
Constants ¶
View Source
const MongoNoDocumentError string = "mongo: no documents in result"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type IPaymentRequestRepository ¶
type IPaymentRequestRepository interface { MakeRequest(request *entities.PayRequest) (string, error) AcknowlegeRequest(requestId string) error DeclineRequest(requestId string) error }
func NewPaymentRequestRepository ¶
func NewPaymentRequestRepository(collection *mongo.Collection, context context.Context) IPaymentRequestRepository
type ITransactionRepository ¶
type ITransactionRepository interface { Submit(trx *entities.Transaction) error GetTransaction(userId string) (*[]daos.TransactionDao, error) }
func NewTransactionRepository ¶
func NewTransactionRepository(collection *mongo.Collection, ctx context.Context) ITransactionRepository
type IUserRepository ¶
type IUserRepository interface { AddUser(person daos.PersonDao) error GetUserByEmailAddress(emailAddress string) (*entities.Person, error) GetUserById(id string) (*entities.Person, error) GetUsers() (*[]entities.Person, error) UpdatePerson(person daos.PersonDao) error }
func NewUserRepository ¶
func NewUserRepository(collection *mongo.Collection, ctx context.Context) IUserRepository
Click to show internal directories.
Click to hide internal directories.