Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 18 additions & 6 deletions ably/objects/liveobjects.go
Original file line number Diff line number Diff line change
Expand Up @@ -85,12 +85,14 @@ type Operation struct {
InitialValue string `json:"initialValue,omitempty" codec:"initialValue,omitempty"`

// Nested operation types — used by protocol v6+ for action-specific payloads. Not yet in use.
MapCreate *MapCreate `json:"mapCreate,omitempty" codec:"mapCreate,omitempty"`
MapSet *MapSet `json:"mapSet,omitempty" codec:"mapSet,omitempty"`
MapRemove *MapRemove `json:"mapRemove,omitempty" codec:"mapRemove,omitempty"`
CounterCreate *CounterCreate `json:"counterCreate,omitempty" codec:"counterCreate,omitempty"`
CounterInc *CounterInc `json:"counterInc,omitempty" codec:"counterInc,omitempty"`
ObjectDelete *ObjectDelete `json:"objectDelete,omitempty" codec:"objectDelete,omitempty"`
MapCreate *MapCreate `json:"mapCreate,omitempty" codec:"mapCreate,omitempty"`
MapSet *MapSet `json:"mapSet,omitempty" codec:"mapSet,omitempty"`
MapRemove *MapRemove `json:"mapRemove,omitempty" codec:"mapRemove,omitempty"`
CounterCreate *CounterCreate `json:"counterCreate,omitempty" codec:"counterCreate,omitempty"`
CounterInc *CounterInc `json:"counterInc,omitempty" codec:"counterInc,omitempty"`
ObjectDelete *ObjectDelete `json:"objectDelete,omitempty" codec:"objectDelete,omitempty"`
MapCreateWithObjectId *MapCreateWithObjectId `json:"mapCreateWithObjectId,omitempty" codec:"mapCreateWithObjectId,omitempty"`
CounterCreateWithObjectId *CounterCreateWithObjectId `json:"counterCreateWithObjectId,omitempty" codec:"counterCreateWithObjectId,omitempty"`
}

type CounterOp struct {
Expand Down Expand Up @@ -166,3 +168,13 @@ type CounterInc struct {
}

type ObjectDelete struct{}

type MapCreateWithObjectId struct {
InitialValue string `json:"initialValue,omitempty" codec:"initialValue,omitempty"`
Nonce string `json:"nonce,omitempty" codec:"nonce,omitempty"`
}

type CounterCreateWithObjectId struct {
InitialValue string `json:"initialValue,omitempty" codec:"initialValue,omitempty"`
Nonce string `json:"nonce,omitempty" codec:"nonce,omitempty"`
}
Comment thread
owenpearson marked this conversation as resolved.
Loading