Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface { FindAll(eventId uint) ([]entities.Participant, error) FindByEmail(email string, eventID uint) (*entities.Participant, error) Save(participant *entities.Participant, eventID uint) error Delete(email string) error RemoveAttendeeEvent(email string, eventID uint) error }
func NewPostgresRepo ¶
func NewPostgresRepo(db *gorm.DB) Repository
type Service ¶
type Service interface { CreateAttendee(participant *entities.Participant, eventID uint) error DeleteAttendee(email string) error SaveAttendee(participant *entities.Participant, eventID uint) error ReadAttendee(email string, eventID uint) (*entities.Participant, error) RemoveAttendeeEvent(email string, eventID uint) error }
func NewParticipantService ¶
func NewParticipantService(r Repository) Service
Click to show internal directories.
Click to hide internal directories.