descendantpublished

package
v0.8.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 17, 2016 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OpTypeAdd    = "add"
	OpTypeRemove = "remove"
)
View Source
const (
	SelectorModeAny        = "any"
	SelectorModeDepthLimit = "depthLimit"
)

Variables

This section is empty.

Functions

func Bind

func Bind(serverCtx *context.Context, root *echo.Group)

Types

type Document

type Document struct {
	OwnerID   bson.ObjectId `bson:"ownerId"`
	Selectors []*Selector   `bson:"selectors"`
}

type Operation

type Operation struct {
	Type     string    `json:"type"`
	Selector *Selector `json:"selector"`
}

func (*Operation) Validate

func (op *Operation) Validate() error

type 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"`
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL