github.com/sym3tri/etcd@v0.2.1-0.20140422215517-a563d82f95d6/server/v1/v1.go (about)

     1  package v1
     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 v1 API.
    11  type Server interface {
    12  	CommitIndex() uint64
    13  	Term() uint64
    14  	Store() store.Store
    15  	Dispatch(raft.Command, http.ResponseWriter, *http.Request) error
    16  }