Documentation ¶
Index ¶
Constants ¶
View Source
const ( BLOCKING_DELAY_MSECS = 500 MASTER_QUEUE_KEY = "vinylretailers::queue" )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type QueuePayload ¶
func (*QueuePayload) Marshal ¶
func (p *QueuePayload) Marshal() (string, error)
func (*QueuePayload) Unmarshal ¶
func (p *QueuePayload) Unmarshal(data string) error
type RedisQueue ¶
type RedisQueue struct {
// contains filtered or unexported fields
}
func ConnectToQueue ¶
func (*RedisQueue) Close ¶
func (r *RedisQueue) Close() error
func (*RedisQueue) DestroyAndCleanup ¶
func (r *RedisQueue) DestroyAndCleanup() error
func (*RedisQueue) Enqueue ¶
func (r *RedisQueue) Enqueue(payload any) error
func (*RedisQueue) PingRedis ¶
func (r *RedisQueue) PingRedis() (bool, error)
func (*RedisQueue) QueueLength ¶
func (r *RedisQueue) QueueLength() (int64, error)
Click to show internal directories.
Click to hide internal directories.