Browse Source

Merge pull request #4563 from hongchaodeng/master

watch event docs
Xiang Li 9 years ago
parent
commit
d35a0d6533
2 changed files with 6 additions and 6 deletions
  1. 3 3
      storage/storagepb/kv.pb.go
  2. 3 3
      storage/storagepb/kv.proto

+ 3 - 3
storage/storagepb/kv.pb.go

@@ -74,9 +74,9 @@ func (*KeyValue) ProtoMessage()    {}
 
 type Event struct {
 	Type Event_EventType `protobuf:"varint,1,opt,name=type,proto3,enum=storagepb.Event_EventType" json:"type,omitempty"`
-	// a put event contains the current key-value
-	// a delete/expire event contains the previous
-	// key-value
+	// A PUT event contains current kv pair.
+	// A PUT event with kv.Version=1 indicates the creation of a key.
+	// A DELETE/EXPIRE event contains previous kv pair
 	Kv *KeyValue `protobuf:"bytes,2,opt,name=kv" json:"kv,omitempty"`
 }
 

+ 3 - 3
storage/storagepb/kv.proto

@@ -32,8 +32,8 @@ message Event {
     EXPIRE = 2;
   }
   EventType type = 1;
-  // a put event contains the current key-value
-  // a delete/expire event contains the previous
-  // key-value
+  // A PUT event contains current kv pair.
+  // A PUT event with kv.Version=1 indicates the creation of a key.
+  // A DELETE/EXPIRE event contains previous kv pair
   KeyValue kv = 2;
 }