You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
12 lines
268 B
12 lines
268 B
6 years ago
|
package base
|
||
|
|
||
|
import (
|
||
|
"github.com/mongodb/mongo-go-driver/bson/primitive"
|
||
|
)
|
||
|
|
||
|
// Protection field stores unique document id and version
|
||
|
type Protection struct {
|
||
|
X primitive.ObjectID `bson:"_x" json:"_x" index:",hashed"`
|
||
|
V int64 `bson:"_v" json:"_v"`
|
||
|
}
|