Versions in this module Expand all Collapse all v0 v0.4.3 Apr 8, 2015 v0.4.2 Mar 31, 2015 v0.4.1 Mar 9, 2015 v0.3.4 Mar 2, 2015 v0.3.3 Feb 27, 2015 v0.3.2 Feb 21, 2015 v0.3.1 Feb 15, 2015 v0.2.2 Feb 4, 2015 v0.2.1 Jan 28, 2015 v0.0.1 Nov 5, 2014 Changes in this version + type CommandFactory struct + func (f *CommandFactory) CreateCompareAndDeleteCommand(key string, prevValue string, prevIndex uint64) raft.Command + 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 CompareAndDeleteCommand struct + Key string + PrevIndex uint64 + PrevValue string + func (c *CompareAndDeleteCommand) Apply(server raft.Server) (interface{}, error) + func (c *CompareAndDeleteCommand) CommandName() string + type CompareAndSwapCommand struct + ExpireTime time.Time + Key string + PrevIndex uint64 + PrevValue string + Value string + func (c *CompareAndSwapCommand) Apply(context raft.Context) (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(context raft.Context) (interface{}, error) + func (c *CreateCommand) CommandName() string + type DeleteCommand struct + Dir bool + Key string + Recursive bool + func (c *DeleteCommand) Apply(context raft.Context) (interface{}, error) + func (c *DeleteCommand) CommandName() string + type SetCommand struct + Dir bool + ExpireTime time.Time + Key string + Value string + func (c *SetCommand) Apply(context raft.Context) (interface{}, error) + func (c *SetCommand) CommandName() string + type SyncCommand struct + Time time.Time + func (c SyncCommand) Apply(context raft.Context) (interface{}, error) + func (c SyncCommand) CommandName() string + type UpdateCommand struct + ExpireTime time.Time + Key string + Value string + func (c *UpdateCommand) Apply(context raft.Context) (interface{}, error) + func (c *UpdateCommand) CommandName() string