repository

package
v0.0.0-...-b820d78 Latest Latest
Warning

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

Go to latest
Published: May 1, 2021 License: MIT Imports: 10 Imported by: 0

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

Jump to

Keyboard shortcuts

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