Documentation ¶
Index ¶
- func InitRedisConnection(addr string) *redis.Client
- func PublishArchiveTask(client *redis.Client, archiveTask interface{}) error
- func PublishEmailTask(client *redis.Client, emailParts EmailParts) error
- func PublishSourceBucketTask(client *redis.Client, bucket interface{}) error
- func PublishTask(client *redis.Client, TaskMessage interface{}, channelName string) error
- func SubscribeToRedisChannel(rdbClient *redis.Client, handlers map[string]interface{})
- type EmailParts
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func InitRedisConnection ¶
func PublishArchiveTask ¶
PublishArchiveTask marshals an archiveTask into json and publishes to the 'archive' redis channel where the archive request will be handled by a subscriber/worker
func PublishEmailTask ¶
func PublishEmailTask(client *redis.Client, emailParts EmailParts) error
func PublishSourceBucketTask ¶
func PublishTask ¶
PublishTask marshals a struct into json and publishes to the channelName redis channel where the task will be handled by a subscriber/worker returns number of workers that are subscribed to the channel
func SubscribeToRedisChannel ¶
Types ¶
Click to show internal directories.
Click to hide internal directories.