Documentation
¶
Index ¶
- func CreateEvent(event *HldEvent) error
- type EventDTO
- type EventManager
- func (manager *EventManager) AddEvent(eventDto *EventDTO) error
- func (manager *EventManager) ArchiveEvent(EventId uint) error
- func (manager *EventManager) DeleteEvent(EventId uint) error
- func (manager EventManager) Event(Id uint) (*EventDTO, error)
- func (manager *EventManager) Events() ([]*EventDTO, error)
- func (manager *EventManager) GetEventParticipants(EventId uint) []string
- func (manager *EventManager) ModifyEvent(*EventDTO) error
- func (manager *EventManager) PublishEvent(EventId uint) error
- func (manager *EventManager) Register()
- func (manager *EventManager) SingleSubjectRegister(regDTO *RegisterDTO) error
- type Event_Status
- type HldEvent
- type HldPresentation
- type PresentationDTO
- type PresentationType
- type PresenterDTO
- type RegisterDTO
- type SessionStatus
- type SponsorDTO
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CreateEvent ¶
Types ¶
type EventDTO ¶
type EventDTO struct {
Id uint `json:"id"`
Title uint `json:"title"`
Description string `json:"description"`
Date time.Time `json:"date"`
Enable bool `json:"enable"`
Poster string `json:"poster"`
Presenter PresenterDTO `json:"presenter"`
Sponsor SponsorDTO `json:"sponsor"`
}
func MapEventDTO ¶
func MapEventDTO(event *HldEvent, presenter *PresenterDTO, sponsor *SponsorDTO) (*EventDTO, error)
type EventManager ¶
type EventManager struct {
// contains filtered or unexported fields
}
func InitManager ¶
func InitManager() *EventManager
func (*EventManager) AddEvent ¶
func (manager *EventManager) AddEvent(eventDto *EventDTO) error
func (*EventManager) ArchiveEvent ¶
func (manager *EventManager) ArchiveEvent(EventId uint) error
func (*EventManager) DeleteEvent ¶
func (manager *EventManager) DeleteEvent(EventId uint) error
func (*EventManager) Events ¶
func (manager *EventManager) Events() ([]*EventDTO, error)
func (*EventManager) GetEventParticipants ¶
func (manager *EventManager) GetEventParticipants(EventId uint) []string
func (*EventManager) ModifyEvent ¶
func (manager *EventManager) ModifyEvent(*EventDTO) error
func (*EventManager) PublishEvent ¶
func (manager *EventManager) PublishEvent(EventId uint) error
func (*EventManager) Register ¶
func (manager *EventManager) Register()
func (*EventManager) SingleSubjectRegister ¶
func (manager *EventManager) SingleSubjectRegister(regDTO *RegisterDTO) error
type Event_Status ¶
type Event_Status string
const ( INACTIVE Event_Status = "inactive" OPEN Event_Status = "open" ARCHIVED Event_Status = "archived" )
type HldEvent ¶
type HldEvent struct {
Id uint
Title uint
Event_Status Event_Status
Start time.Time
End time.Time
Description string
Poster string
Archived_at time.Time
Created_at time.Time
Updated_at time.Time
}
func ReadEvents ¶
type HldPresentation ¶
type PresentationDTO ¶
type PresentationDTO struct {
ID uint
}
func Presentation ¶
func Presentation(ID uint) (*PresentationDTO, error)
func Presentations ¶
func Presentations() ([]*PresentationDTO, error)
func PresentationsByEvent ¶
func PresentationsByEvent(eventID uint) ([]*PresentationDTO, error)
type PresentationType ¶
type PresentationType string
const ( Workshop PresentationType = "workshop" Talk PresentationType = "talk" )
type PresenterDTO ¶
type RegisterDTO ¶
type SessionStatus ¶
type SessionStatus string
const ( ClosedToJoin SessionStatus = "closed_to_join" OpenToJoin SessionStatus = "open_to_join" ArchivedSession SessionStatus = "archived" )
type SponsorDTO ¶
Click to show internal directories.
Click to hide internal directories.