participant

package
v0.0.0-...-21824ef Latest Latest
Warning

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

Go to latest
Published: Jul 4, 2020 License: MIT Imports: 3 Imported by: 0

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

Jump to

Keyboard shortcuts

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