influxdb/statemachine.go

15 lines
385 B
Go
Raw Normal View History

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