etcdserver: add publish func