2013-06-06 04:14:07 +00:00
|
|
|
package raft
|
|
|
|
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
//
|
|
|
|
// Typedefs
|
|
|
|
//
|
|
|
|
//------------------------------------------------------------------------------
|
|
|
|
|
2013-06-24 16:52:51 +00:00
|
|
|
// StateMachine is the interface for allowing the host application to save and
|
2013-06-06 04:14:07 +00:00
|
|
|
// recovery the state machine
|
|
|
|
type StateMachine interface {
|
|
|
|
Save() ([]byte, error)
|
|
|
|
Recovery([]byte) error
|
2013-06-08 02:19:18 +00:00
|
|
|
}
|