Versions in this module Expand all Collapse all v0 v0.4.5 Jul 8, 2014 v0.4.4 Jun 24, 2014 v0.4.3 Jun 8, 2014 v0.4.2 Jun 2, 2014 v0.4.1 May 21, 2014 v0.4.0 May 21, 2014 v0.3.0 Feb 7, 2014 Changes in this version type CommandFactory + func (f *CommandFactory) CreateCompareAndDeleteCommand(key string, prevValue string, prevIndex uint64) raft.Command + type CompareAndDeleteCommand struct + Key string + PrevIndex uint64 + PrevValue string + func (c *CompareAndDeleteCommand) Apply(server raft.Server) (interface{}, error) + func (c *CompareAndDeleteCommand) CommandName() string v0.2.0 Dec 23, 2013 Changes in this version + type CommandFactory struct + func (f *CommandFactory) CreateCompareAndSwapCommand(key string, value string, prevValue string, prevIndex uint64, ...) raft.Command + func (f *CommandFactory) CreateCreateCommand(key string, dir bool, value string, expireTime time.Time, unique bool) raft.Command + func (f *CommandFactory) CreateDeleteCommand(key string, dir, recursive bool) raft.Command + func (f *CommandFactory) CreateSetCommand(key string, dir bool, value string, expireTime time.Time) raft.Command + func (f *CommandFactory) CreateSyncCommand(now time.Time) raft.Command + func (f *CommandFactory) CreateUpdateCommand(key string, value string, expireTime time.Time) raft.Command + func (f *CommandFactory) CreateUpgradeCommand() raft.Command + func (f *CommandFactory) Version() int + type CompareAndSwapCommand struct + ExpireTime time.Time + Key string + PrevIndex uint64 + PrevValue string + Value string + func (c *CompareAndSwapCommand) Apply(server raft.Server) (interface{}, error) + func (c *CompareAndSwapCommand) CommandName() string + type CreateCommand struct + Dir bool + ExpireTime time.Time + Key string + Unique bool + Value string + func (c *CreateCommand) Apply(server raft.Server) (interface{}, error) + func (c *CreateCommand) CommandName() string + type DeleteCommand struct + Dir bool + Key string + Recursive bool + func (c *DeleteCommand) Apply(server raft.Server) (interface{}, error) + func (c *DeleteCommand) CommandName() string + type SetCommand struct + Dir bool + ExpireTime time.Time + Key string + Value string + func (c *SetCommand) Apply(server raft.Server) (interface{}, error) + func (c *SetCommand) CommandName() string + type SyncCommand struct + Time time.Time + func (c SyncCommand) Apply(server raft.Server) (interface{}, error) + func (c SyncCommand) CommandName() string + type UpdateCommand struct + ExpireTime time.Time + Key string + Value string + func (c *UpdateCommand) Apply(server raft.Server) (interface{}, error) + func (c *UpdateCommand) CommandName() string v0.2.0-rc4 Dec 23, 2013 v0.2.0-rc3 Dec 16, 2013 v0.2.0-rc1 Nov 14, 2013