func ZKTimeout(d time.Duration) ZKOpt {
	return func(z *zkConfig) {
		z.timeout = d
	}
}
ZKTimeout - How long to wait on a response from the Zookeeper instance before considering it dead.
package realis
import (
	"encoding/json"
	"strconv"
	"strings"
	"time"
	"github.com/pkg/errors"
	"github.com/samuel/go-zookeeper/zk"
)
type endpoint struct {
	Host string `json:"host"`
	Port int    `json:"port"`
}
type serviceInstance struct {
	Service             endpoint            `json:"serviceEndpoint"`
	AdditionalEndpoints map[string]endpoint `json:"additionalEndpoints"`
	Status              string              `json:"status"`
}
type zkConfig struct {
	endpoints []string
	path      string
	backoff   Backoff
	timeout   time.Duration
	logger    logger
}
type ZKOpt func(z *zkConfig)
func ZKEndpoints(endpoints ...string) ZKOpt {
	return func(z *zkConfig) {
		z.endpoints = endpoints
	}
}
func ZKPath(path string) ZKOpt {
	return func(z *zkConfig) {
		z.path = path
	}
}
func ZKBackoff(b Backoff) ZKOpt {
	return func(z *zkConfig) {
		z.backoff = b
	}
}