Skip to content

jedrivisser/etcd-lease-watcher

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ETCD Lease Watcher

A Basic example on how to use the golang etcd clientv3 to:

  • Watch for deleted keys
  • Find out if it was deleted because of a lease expiry
  • Get the value of the key that was just deleted
  • Starts a local etcd server from code
  • Run all of this in a unit test