Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func SendMailTrx ¶
func SendMailTrx(mailto string, data interface{})
Types ¶
type AuthService ¶
type AuthService interface { VerifyCredential(email string, password string) interface{} CreateUser(user valueObjects.User) (entity.User, error) // FindByEmail(email string) entity.User // IsDuplicateEmail(email string) bool UserRole(userID string) string }
func NewAuthService ¶
func NewAuthService(userRep repository.UserRepository) AuthService
type EventService ¶
type EventService interface { Create(ev valueObjects.Event) (entity.Event, error) GetEvent(eventID string) entity.Event AllEvent() []entity.Event UserRole(userID string) string Profile(userID string) entity.User }
func NewEventService ¶
func NewEventService(evRepo repository.EventRepository) EventService
type JWTService ¶
type JWTService interface { GenerateToken(userID string) string GeneratePaymentToken(userID string, ticketID string, doStatus string) string ValidateToken(token string) (*jwt.Token, error) }
func NewJWTService ¶
func NewJWTService() JWTService
type TransactionService ¶
type TransactionService interface { Create(trx valueObjects.Transaction) (entity.Transaction, error) Update(trx valueObjects.Transaction) (entity.Transaction, error) GetTicket(trxID string) (entity.Transaction, error) }
func NewTransactionService ¶
func NewTransactionService(trxRepo repository.TransactionRepository, userRepo repository.UserRepository, evRepo repository.EventRepository) TransactionService
type UserService ¶
type UserService interface { Insert(user valueObjects.User) (entity.User, error) Update(user valueObjects.User) (entity.User, error) Profile(userID string) entity.User All() []entity.User UserRole(userID string) string }
func NewUserService ¶
func NewUserService(userRepo repository.UserRepository) UserService
Click to show internal directories.
Click to hide internal directories.