models

package
v0.0.0-...-5e137a4 Latest Latest
Warning

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

Go to latest
Published: Oct 19, 2020 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func MongoConnect

func MongoConnect(mongoURL string) *mongo.Client

MongoConnect returns a client through which you can connect to MongoDB

Types

type Meeting

type Meeting struct {
	ID           string        `bson:"id" json:"id"`
	Title        string        `bson:"title" json:"title"`
	Participants []Participant `bson:"participants" json:"participants"`
	StartTime    int64         `bson:"startTime" json:"startTime"`
	EndTime      int64         `bson:"endTime" json:"endTime"`
	CreatedAt    int64         `bson:"createdAt" json:"createdAt"`
}

Meeting is a struct defining the meeting object

type Participant

type Participant struct {
	Name  string `bson:"name" json:"name"`
	Email string `bson:"email" json:"email"`
	RSVP  string `bson:"rsvp" json:"rsvp"`
}

Participant is a struct defining the participant object

Jump to

Keyboard shortcuts

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