Documentation ¶
Index ¶
Constants ¶
View Source
const ( Increment string = "Increment" Decrement string = "Decrement" Add string = "Add" AddUnique string = "AddUnique" IncrementSet string = "IncrementSet" IncrementFrom string = "IncrementFrom" )
Valid operations
Variables ¶
This section is empty.
Functions ¶
func NewUpdateCmd ¶
NewUpdateCmd creates and returns an update command for index objects
func ValidateOperation ¶
func ValidateOperation(p search.PartialUpdateOperation) error
ValidateOperation checks that the operation is valid
Types ¶
type Object ¶
type Object map[string]interface{}
Object is a map[string]interface{} that can be unmarshalled from a JSON object The object must have an objectID field Each field could be either an `search.PartialUpdateOperation` or a scalar value
func (*Object) UnmarshalJSON ¶
UnmarshalJSON unmarshals a JSON object into an Object
Click to show internal directories.
Click to hide internal directories.