const configPath …
const varsPath …
const versionPath …
func HandleBasic(lg *zap.Logger, mux *http.ServeMux, server etcdserver.ServerPeer) { … }
func versionHandler(c api.Cluster, fn func(http.ResponseWriter, *http.Request, string)) http.HandlerFunc { … }
func serveVersion(w http.ResponseWriter, r *http.Request, clusterV string) { … }
func serveVars(w http.ResponseWriter, r *http.Request) { … }
func allowMethod(w http.ResponseWriter, r *http.Request, m string) bool { … }
func WriteError(lg *zap.Logger, w http.ResponseWriter, r *http.Request, err error) { … }