v2http - ActiveState ActiveGo 1.8
...

Package v2http

import "github.com/coreos/etcd/etcdserver/api/v2http"
Overview
Index
Subdirectories

Overview ▾

Package v2http provides etcd client and server implementations.

func NewClientHandler

func NewClientHandler(server *etcdserver.EtcdServer, timeout time.Duration) http.Handler

NewClientHandler generates a muxed http.Handler with the given parameters to serve etcd client requests.

func NewPeerHandler

func NewPeerHandler(s *etcdserver.EtcdServer) http.Handler

NewPeerHandler generates an http.Handler to handle etcd peer requests.

Subdirectories

Name Synopsis
..
httptypes Package httptypes defines how etcd's HTTP API entities are serialized to and deserialized from JSON.