repositories

package
v0.0.0-...-c877830 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Mar 2, 2024 License: MIT Imports: 8 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL