github.com/ghodss/etcd@v0.3.1-0.20140417172404-cc329bfa55cb/server/v2/v2.go (about) 1 package v2 2 3 import ( 4 "net/http" 5 6 "github.com/coreos/etcd/store" 7 "github.com/coreos/etcd/third_party/github.com/goraft/raft" 8 ) 9 10 // The Server interface provides all the methods required for the v2 API. 11 type Server interface { 12 State() string 13 Leader() string 14 CommitIndex() uint64 15 Term() uint64 16 PeerURL(string) (string, bool) 17 ClientURL(string) (string, bool) 18 Store() store.Store 19 Dispatch(raft.Command, http.ResponseWriter, *http.Request) error 20 }