etcdserver: add publish func

for #1094 
we should not use short name for file wide type...