*: expose etcd-index in watch requests
This adds a StartIndex field to the Watcher interface, which represents the Etcd-Index at which the Watcher is created. Also refactors the HTTP tests to use a table for most handleWatch tests
This commit is contained in:
@ -1059,6 +1059,7 @@ func (s *storeRecorder) DeleteExpiredKeys(cutoff time.Time) {
|
||||
type stubWatcher struct{}
|
||||
|
||||
func (w *stubWatcher) EventChan() chan *store.Event { return nil }
|
||||
func (w *stubWatcher) StartIndex() uint64 { return 0 }
|
||||
func (w *stubWatcher) Remove() {}
|
||||
|
||||
// errStoreRecorder returns an store error on Get, Watch request
|
||||
|
Reference in New Issue
Block a user