Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type WriteCommand ¶
This command writes a value to a key.
func NewWriteCommand ¶
func NewWriteCommand(key string, value string) *WriteCommand
Creates a new write command.
func (*WriteCommand) Apply ¶
func (c *WriteCommand) Apply(server raft.Server) (interface{}, error)
Writes a value to a key.
func (*WriteCommand) CommandName ¶
func (c *WriteCommand) CommandName() string
The name of the command in the log.
Click to show internal directories.
Click to hide internal directories.