etcdserver: add publish func

for #1094 
can you add a short doc-string please?