etcdserver: add publish func

for #1094 
anything for you