service

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: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DailyMail

func DailyMail()

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)
}

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

Jump to

Keyboard shortcuts

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