github.com/macb/etcd@v0.3.1-0.20140227003422-a60481c6b1a0/server/v1/v1.go (about) 1 package v1 2 3 import ( 4 "github.com/coreos/etcd/store" 5 "github.com/coreos/etcd/third_party/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 }