You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
9 lines
269 B
9 lines
269 B
package raft
|
|
|
|
// StateMachine is the interface for allowing the host application to save and
|
|
// recovery the state machine. This makes it possible to make snapshots
|
|
// and compact the log.
|
|
type StateMachine interface {
|
|
Save() ([]byte, error)
|
|
Recovery([]byte) error
|
|
}
|