influxdb/nop_command.go

27 lines
391 B
Go
Raw Normal View History

2013-07-11 05:20:21 +00:00
package raft
import (
"io"
)
2013-07-11 05:20:21 +00:00
// NOP command
type NOPCommand struct {
}
// The name of the NOP command in the log
func (c NOPCommand) CommandName() string {
return "raft:nop"
2013-07-11 05:20:21 +00:00
}
2013-10-14 17:54:49 +00:00
func (c NOPCommand) Apply(server Server) (interface{}, error) {
2013-07-11 05:20:21 +00:00
return nil, nil
}
func (c NOPCommand) Encode(w io.Writer) error {
return nil
}
func (c NOPCommand) Decode(r io.Reader) error {
return nil
}