Documentation
¶
Index ¶
- Constants
- type Logger
- func (logger *Logger) Debug(args ...interface{})
- func (logger *Logger) Error(args ...interface{})
- func (logger *Logger) Fatal(args ...interface{})
- func (logger *Logger) Info(args ...interface{})
- func (logger *Logger) Print(level zerolog.Level, args ...interface{})
- func (logger *Logger) Printf(ctx context.Context, format string, v ...interface{})
- func (logger *Logger) Warn(args ...interface{})
- type PayloadSendPropertyListing
- type Property
- type RedisTaskDistributor
- type RedisTaskProcessor
- type TaskDistributor
- type TaskProcessor
Constants ¶
View Source
const ( QueueCritical = "critical" QueueDefault = "default" )
View Source
const (
TaskSendPropertyListing = "task:send_property_listing"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type PayloadSendPropertyListing ¶
type PayloadSendPropertyListing struct {
Properties []int64 `json:"properties"`
}
type RedisTaskDistributor ¶
type RedisTaskDistributor struct {
// contains filtered or unexported fields
}
func (RedisTaskDistributor) DistributeTaskSendPropertyListing ¶
func (r RedisTaskDistributor) DistributeTaskSendPropertyListing(ctx context.Context, payload *PayloadSendPropertyListing, opts ...asynq.Option) error
type RedisTaskProcessor ¶
type RedisTaskProcessor struct {
// contains filtered or unexported fields
}
func (*RedisTaskProcessor) ProcessTaskSendPropertyListing ¶
func (*RedisTaskProcessor) Start ¶
func (processor *RedisTaskProcessor) Start() error
type TaskDistributor ¶
type TaskDistributor interface {
DistributeTaskSendPropertyListing(ctx context.Context, payload *PayloadSendPropertyListing, opts ...asynq.Option) error
}
func NewRedisTaskDistributor ¶
func NewRedisTaskDistributor(redisOpt asynq.RedisClientOpt) TaskDistributor
type TaskProcessor ¶
type TaskProcessor interface { Start() error ProcessTaskSendPropertyListing(ctx context.Context, task *asynq.Task) error }
func NewRedisTaskProcessor ¶
func NewRedisTaskProcessor(redisOpt asynq.RedisClientOpt, store database.Store, mailer mail.EmailSender, config utils.Config) TaskProcessor
Click to show internal directories.
Click to hide internal directories.