Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type EventRepository ¶
type EventRepository interface { CreateEvent(event entity.Event) (entity.Event, error) GetEvent(eventID string) entity.Event AllEvent() []entity.Event ProfileUser(userID string) entity.User }
func NewEventRepository ¶
func NewEventRepository() EventRepository
type TransactionRepository ¶
type TransactionRepository interface { CreateTransaction(trx entity.Transaction) (entity.Transaction, error) UpdateTransaction(trx entity.Transaction) (entity.Transaction, error) GetTransaction(trxID string) (entity.Transaction, error) }
func NewTransactionRepository ¶
func NewTransactionRepository() TransactionRepository
type UserRepository ¶
type UserRepository interface { InsertUser(user entity.User) (entity.User, error) UpdateUser(user entity.User) (entity.User, error) VerifyCredential(email string, password string) interface{} ProfileUser(userID string) entity.User }
func NewUserRepository ¶
func NewUserRepository(db *gorm.DB) UserRepository
Click to show internal directories.
Click to hide internal directories.