github.com/jpetazzo/etcd@v0.2.1-0.20140113055439-97f1363afac5/server/v1/v1.go (about) 1 package v1 2 3 import ( 4 "github.com/coreos/etcd/store" 5 "github.com/coreos/raft" 6 "net/http" 7 ) 8 9 // The Server interface provides all the methods required for the v1 API. 10 type Server interface { 11 CommitIndex() uint64 12 Term() uint64 13 Store() store.Store 14 Dispatch(raft.Command, http.ResponseWriter, *http.Request) error 15 }