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
253 B
12 lines
253 B
5 years ago
|
package protection
|
||
6 years ago
|
|
||
|
import (
|
||
6 years ago
|
"go.mongodb.org/mongo-driver/bson/primitive"
|
||
6 years ago
|
)
|
||
|
|
||
5 years ago
|
// Key field stores unique document id and version
|
||
|
type Key struct {
|
||
6 years ago
|
X primitive.ObjectID `bson:"_x" json:"_x" index:",hashed"`
|
||
|
V int64 `bson:"_v" json:"_v"`
|
||
|
}
|