package
Version:
v0.8.0
Opens a new window with list of versions in this module.
Published: Aug 17, 2016
License: MIT
Opens a new window with license information.
Imports: 10
Opens a new window with list of imports.
Imported by: 0
Opens a new window with list of known importers.
Documentation
¶
View Source
const (
OpTypeAdd = "add"
OpTypeRemove = "remove"
)
View Source
const (
SelectorModeAny = "any"
SelectorModeDepthLimit = "depthLimit"
)
type Document struct {
OwnerID bson.ObjectId `bson:"ownerId"`
Selectors []*Selector `bson:"selectors"`
}
type Operation struct {
Type string `json:"type"`
Selector *Selector `json:"selector"`
}
type Selector struct {
ContentURL string `json:"contentURL" bson:"contentURL"`
ContentID string `json:"-" bson:"contentID"`
Mode string `json:"mode" bson:"mode"`
DepthLimit uint `json:"depthLimit,omitempty" bson:"depthLimit,omitempty"`
}
Source Files
¶
Click to show internal directories.
Click to hide internal directories.