Versions in this module Expand all Collapse all v0 v0.4.0 May 26, 2014 v0.3.3 May 29, 2014 v0.3.2 May 13, 2014 v0.3.1 May 12, 2014 v0.3.1-rc.2 May 12, 2014 v0.3.1-rc.1 May 12, 2014 v0.3.0 May 7, 2014 v0.3.0-rc.3 May 7, 2014 v0.3.0-rc.2 May 7, 2014 v0.3.0-rc.1 May 6, 2014 v0.2.0 Apr 4, 2014 v0.2.0-rc.3 Apr 4, 2014 v0.2.0-rc.2 Apr 4, 2014 v0.2.0-rc.1 Apr 3, 2014 v0.1.4 Mar 4, 2014 v0.1.3 Feb 22, 2014 v0.1.2 Feb 18, 2014 v0.1.1 Feb 13, 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