utils

package
v0.0.0-...-2dae30e Latest Latest
Warning

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

Go to latest
Published: Dec 14, 2020 License: MIT Imports: 11 Imported by: 1

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateParticipant

func CreateParticipant(client *mongo.Client, participant models.Participant) interface{}

func ExtractParam

func ExtractParam(r *http.Request) string

func GetClient

func GetClient() *mongo.Client

func GetMeetingsInDuration

func GetMeetingsInDuration(client *mongo.Client, start time.Time, end time.Time) ([]*models.Meeting, bool)

func GetMeetingsOfParticipant

func GetMeetingsOfParticipant(client *mongo.Client, participant_id string) ([]*models.Meeting, bool)

func GetParticipant

func GetParticipant(client *mongo.Client, filter bson.M) models.Participant

func InternalError

func InternalError(w http.ResponseWriter)

func InvalidRequest

func InvalidRequest(w http.ResponseWriter, statCode int, message string)

func ReturnMeeting

func ReturnMeeting(client *mongo.Client, filter bson.M) (models.Meeting, bool)

func ReturnMeetings

func ReturnMeetings(client *mongo.Client, filter bson.M) ([]*models.Meeting, bool)

func ReturnParticipants

func ReturnParticipants(client *mongo.Client, filter bson.M) []*models.Participant

func ScheduleNewMeeting

func ScheduleNewMeeting(client *mongo.Client, meeting models.Meeting) (interface{}, bool)

Types

This section is empty.

Jump to

Keyboard shortcuts

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