Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HelpMessages ¶
type HelpMessages struct {
// contains filtered or unexported fields
}
HelpMessages holds the question-answer messages record
type QuestionsAnswered ¶
type QuestionsAnswered struct { QuestionID string `bson:"question_Id"` AnswerTime string `bson:"answerTime"` QuestionNo int `bson:"questionNo"` }
QuestionsAnswered holds the question-answer record
type User ¶
type User struct { ID string `bson:"_id,omitempty"` Username string `bson:"username"` Name string `bson:"name"` Phone string `bson:"phone"` College string `bson:"college"` Country string `bson:"country"` Year int `bson:"year"` TotalAttempts int `bson:"attempts"` Rank int `bson:"rank"` CreatedAt primitive.DateTime `bson:"createdAt"` UpdatedAt primitive.DateTime `bson:"updatedAt"` AnsweredQuestions []QuestionsAnswered `bson:"answeredQuestions"` Chats []HelpMessages `bson:"chats"` }
User : The struct to map to user collection
Click to show internal directories.
Click to hide internal directories.