Versions in this module Expand all Collapse all v0 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-rc2 Dec 6, 2013 v0.2.0-rc1 Nov 14, 2013