|
@@ -30,6 +30,7 @@ type Event struct {
|
|
|
Node *NodeExtern `json:"node,omitempty"`
|
|
Node *NodeExtern `json:"node,omitempty"`
|
|
|
PrevNode *NodeExtern `json:"prevNode,omitempty"`
|
|
PrevNode *NodeExtern `json:"prevNode,omitempty"`
|
|
|
EtcdIndex uint64 `json:"-"`
|
|
EtcdIndex uint64 `json:"-"`
|
|
|
|
|
+ Refresh bool `json:"refresh,omitempty"`
|
|
|
}
|
|
}
|
|
|
|
|
|
|
|
func newEvent(action string, key string, modifiedIndex, createdIndex uint64) *Event {
|
|
func newEvent(action string, key string, modifiedIndex, createdIndex uint64) *Event {
|
|
@@ -64,3 +65,7 @@ func (e *Event) Clone() *Event {
|
|
|
PrevNode: e.PrevNode.Clone(),
|
|
PrevNode: e.PrevNode.Clone(),
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
|
|
+
|
|
|
|
|
+func (e *Event) SetRefresh() {
|
|
|
|
|
+ e.Refresh = true
|
|
|
|
|
+}
|