influxdb/statemachine.go

16 lines
450 B
Go
Raw Normal View History

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-11-24 23:15:02 +00:00
// recovery the state machine. This makes it possible to make snapshots
// and compact the log.
2013-06-06 04:14:07 +00:00
type StateMachine interface {
Save() ([]byte, error)
Recovery([]byte) error
2013-06-08 02:19:18 +00:00
}