Documentation
¶
Index ¶
- func NewRedisCommandStorage(pool *redis.Pool) core.CommandStorage
- type RedisCommandStorage
- func (store *RedisCommandStorage) CommandsForAgent(agentID core.AgentID) <-chan core.Command
- func (store *RedisCommandStorage) QueueReceivedCommand(agentID core.AgentID, command *core.Command) error
- func (store *RedisCommandStorage) ReportUndeliveredCommand(agentID core.AgentID, command *core.Command) error
- func (store *RedisCommandStorage) SetCommandResult(result *core.CommandResult) error
- type RedisData
- func (store *RedisData) IsCommandFormatError(err error) bool
- func (redisData *RedisData) LogCommand(command *core.Command) error
- func (redisData *RedisData) ReceiveCommand() (*core.Command, error)
- func (redisData *RedisData) RespondToCommandAsJustQueued(agentID core.AgentID, command *core.Command) error
- func (redisData *RedisData) SignalCommandAsQueued(commandID string) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func NewRedisCommandStorage ¶
func NewRedisCommandStorage(pool *redis.Pool) core.CommandStorage
Types ¶
type RedisCommandStorage ¶
type RedisCommandStorage struct {
// contains filtered or unexported fields
}
func (*RedisCommandStorage) CommandsForAgent ¶
func (store *RedisCommandStorage) CommandsForAgent(agentID core.AgentID) <-chan core.Command
Communication errors in the command-producing channels are swallowed and handled discretely
func (*RedisCommandStorage) QueueReceivedCommand ¶
func (*RedisCommandStorage) ReportUndeliveredCommand ¶
func (*RedisCommandStorage) SetCommandResult ¶
func (store *RedisCommandStorage) SetCommandResult(result *core.CommandResult) error
type RedisData ¶
type RedisData struct {
// contains filtered or unexported fields
}
func NewRedisData ¶
Constructs and returns a new RedisData instance which implements the following interfaces:
- core.Incoming
- core.CommandStorage
- core.CommandLogger
func (*RedisData) IsCommandFormatError ¶
func (*RedisData) ReceiveCommand ¶
func (*RedisData) RespondToCommandAsJustQueued ¶
func (*RedisData) SignalCommandAsQueued ¶
Click to show internal directories.
Click to hide internal directories.