mirror of
https://github.com/MedzikUser/go-pingbot
synced 2024-08-14 23:57:07 +00:00
BREAKING CHANGE: YOU MUST CHANGE `_id` TO `url` AND GENERATE ObjectID to `_id` IN MONGODB.
10 lines
311 B
Go
10 lines
311 B
Go
package mongo
|
|
|
|
import "go.mongodb.org/mongo-driver/bson/primitive"
|
|
|
|
type URL struct {
|
|
ID primitive.ObjectID `bson:"_id,omitempty" json:"id,omitempty"`
|
|
URL string `bson:"url,omitempty" json:"url,omitempty"`
|
|
Cluster int `bson:"cluster,omitempty" json:"cluster,omitempty"`
|
|
}
|