Extract Store into an interface.

This commit is contained in:
Ben Johnson
2013-10-14 11:12:30 -06:00
parent a6a32a592d
commit 1321c63f3b
14 changed files with 92 additions and 68 deletions

View File

@@ -13,6 +13,6 @@ type Server interface {
CommitIndex() uint64
Term() uint64
PeerURL(string) (string, bool)
Store() *store.Store
Store() store.Store
Dispatch(raft.Command, http.ResponseWriter, *http.Request) error
}