etcd/server/v1/v1.go
2013-11-22 08:59:24 -08:00

16 lines
318 B
Go

package v1
import (
"github.com/coreos/etcd/store"
"github.com/coreos/raft"
"net/http"
)
// The Server interface provides all the methods required for the v1 API.
type Server interface {
CommitIndex() uint64
Term() uint64
Store() store.Store
Dispatch(raft.Command, http.ResponseWriter, *http.Request) error
}