Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Repository ¶
type Repository interface { GetSegments(uint) ([]entities.EventSegment, error) GetParticipantsInSegment(uint) ([]entities.Participant, error) DeleteSegment(uint) error AddParticipantToSegment(string, uint, uint) error Find(day uint, eventID uint) (*entities.EventSegment, error) }
func NewPostgresRepo ¶
func NewPostgresRepo(db *gorm.DB) Repository
type Service ¶
type Service interface { GetSegments(uint) ([]entities.EventSegment, error) GetParticipantsInSegment(uint) ([]entities.Participant, error) DeleteSegment(uint) error AddParticipantToSegment(email string, day uint, eventID uint) error ReadEventSegment(day uint, eventID uint) (*entities.EventSegment, error) }
func NewEventSegmentService ¶
func NewEventSegmentService(repo Repository) Service
Click to show internal directories.
Click to hide internal directories.