Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func Collection ¶
Collection initialises new collections inside given database
Types ¶
type MalformedRequest ¶
MalformedRequest represents a JSON Response structure for malformed requests
type Meeting ¶
type Meeting struct { ID string `json:"id,omitempty"` Title string `json:"title"` Participants []Participant `json:"participants"` StartTime time.Time `json:"start_time"` EndTime time.Time `json:"end_time"` CreatedAt time.Time `json:"created_at,omitempty"` }
Meeting represents Meeting collection structure
type MeetingResponse ¶
MeetingResponse represents JSON Response structure for Meeting
func CreateMeeting ¶
func CreateMeeting(meeting Meeting) MeetingResponse
CreateMeeting creates a new meeting entry
func GetAllMeetings ¶
func GetAllMeetings(startTime time.Time, endTime time.Time) MeetingResponse
GetAllMeetings returns all meetings scheduled between given start and end time
func GetMeetingForParticipant ¶
func GetMeetingForParticipant(email string) MeetingResponse
GetMeetingForParticipant returns all meetings the given participant is inside
func GetSingleMeeting ¶
func GetSingleMeeting(meetingID string) MeetingResponse
GetSingleMeeting returns full-meeting document with given meetingID
type Participant ¶
type Participant struct { Name string `json:"name,omitempty"` Email string `json:"email"` RSVP string `json:"rsvp,omitempty"` }
Participant represents users
type ParticipantResponse ¶
type ParticipantResponse struct { Status int Message string Data []Participant Time time.Time }
ParticipantResponse represents JSON Response structure for Participant
type RSVPMessageType ¶
type RSVPMessageType int32
RSVPMessageType represents the allowed RSVP messages for a meeting