Documentation ¶
Index ¶
- Constants
- func GetCachedENSName(ctx context.Context, c cache.Cache, walletAddress string) (string, error)
- 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(_ context.Context, format string, v ...interface{})
- func (logger *Logger) Warn(args ...interface{})
- type PayloadCacheEnsName
- type RedisTaskDistributor
- type RedisTaskProcessor
- type TaskDistributor
- type TaskProcessor
Constants ¶
View Source
const ( QueueDefault = "default" QueueCritical = "critical" )
View Source
const (
TaskCacheENSName = "task:cache_ens_name"
)
Variables ¶
This section is empty.
Functions ¶
Types ¶
type PayloadCacheEnsName ¶
type PayloadCacheEnsName struct {
WalletAddress string `json:"wallet_address"`
}
type RedisTaskDistributor ¶
type RedisTaskDistributor struct {
// contains filtered or unexported fields
}
func (*RedisTaskDistributor) DistributeTaskCacheEnsName ¶
func (distributor *RedisTaskDistributor) DistributeTaskCacheEnsName(ctx context.Context, payload *PayloadCacheEnsName, opts ...asynq.Option) error
type RedisTaskProcessor ¶
type RedisTaskProcessor struct {
// contains filtered or unexported fields
}
func (*RedisTaskProcessor) ProcessTaskCacheEnsName ¶
func (*RedisTaskProcessor) Start ¶
func (processor *RedisTaskProcessor) Start() error
type TaskDistributor ¶
type TaskDistributor interface {
DistributeTaskCacheEnsName(context.Context, *PayloadCacheEnsName, ...asynq.Option) error
}
func NewRedisTaskDistributor ¶
func NewRedisTaskDistributor(redisOpt asynq.RedisConnOpt) TaskDistributor
type TaskProcessor ¶
type TaskProcessor interface { Start() error ProcessTaskCacheEnsName(context.Context, *asynq.Task) error }
func NewRedisTaskProcessor ¶
func NewRedisTaskProcessor(redisOpt asynq.RedisConnOpt, config util.Config, cache cache.Cache) TaskProcessor
Click to show internal directories.
Click to hide internal directories.