Documentation ¶
Index ¶
Constants ¶
View Source
const CollectionName = "messages"
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Message ¶
type Message struct { ID primitive.ObjectID `bson:"_id,omitempty" validate:"-"` Type string `bson:"type" validate:"required"` Msg string `bson:"msg" validate:"required"` Status bool `bson:"status" validate:"required"` CreatedAt time.Time `bson:"createdAt" validate:"required"` UpdatedAt time.Time `bson:"updatedAt" validate:"required"` }
func (*Message) EnsureIndexes ¶
Click to show internal directories.
Click to hide internal directories.