Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CancelRequest ¶
type CancelRequest struct {
Id string `json:"id"`
}
type CollabMessage ¶
type GetMatchFilter ¶
type InvalidInputError ¶
type InvalidInputError struct {
Message string
}
func (InvalidInputError) Error ¶
func (e InvalidInputError) Error() string
type Match ¶
type Match struct { Id primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"` // mongo uses _id in bson for their object id, json id is for our requests UserId string `json:"user_id" bson:"user_id"` Category string `json:"category"` Complexity string `json:"complexity"` HasMatch bool `json:"has_match" bson:"has_match"` CreatedAt primitive.DateTime `json:"created_at" bson:"created_at"` IsCancelled bool `json:"is_cancelled" bson:"is_cancelled"` IsRoomCreated bool `json:"is_room_created" bson:"is_room_created"` RoomId string `json:"room_id" bson:"room_id"` }
type MatchRequest ¶
type MatchRequestMessage ¶
type MatchRequestMessage struct { Id primitive.ObjectID `json:"id,omitempty" bson:"_id,omitempty"` // mongo uses _id in bson for their object id, json id is for our requests UserId string `json:"user_id" bson:"user_id"` }
func (*MatchRequestMessage) UnmarshalJSON ¶
func (m *MatchRequestMessage) UnmarshalJSON(data []byte) error
manual unmarshal to handle primitive.ObjectID type
type RoomCreatedReq ¶
Click to show internal directories.
Click to hide internal directories.