Documentation
¶
Index ¶
- Variables
- func EnqueueWithTracing(ctx context.Context, client *asynq.Client, task *asynq.Task, ...) (taskinfo *asynq.TaskInfo, err error)
- func Logging(logger klog.Logger) asynq.MiddlewareFunc
- func NewAsynqClient(opt asynq.RedisConnOpt) (*asynq.Client, func())
- func NewAsynqClientOpt(r redis.UniversalClient) asynq.RedisConnOpt
- func NewUi(root string, opt asynq.RedisConnOpt) http.Handler
- func SetTracingOption(ctx context.Context) asynq.Option
- func Stack() asynq.MiddlewareFunc
- func TracingServer() asynq.MiddlewareFunc
- type LazyAsynqServer
- type RedisFunc
- type Server
- type ServerOption
- type SpanKind
Constants ¶
This section is empty.
Variables ¶
View Source
var DefaultProviderSet = wire.NewSet(NewAsynqClientOpt, NewAsynqClient)
Functions ¶
func EnqueueWithTracing ¶
func NewAsynqClient ¶
func NewAsynqClient(opt asynq.RedisConnOpt) (*asynq.Client, func())
func NewAsynqClientOpt ¶
func NewAsynqClientOpt(r redis.UniversalClient) asynq.RedisConnOpt
func Stack ¶
func Stack() asynq.MiddlewareFunc
func TracingServer ¶
func TracingServer() asynq.MiddlewareFunc
Types ¶
type RedisFunc ¶
type RedisFunc func() interface{}
func (RedisFunc) MakeRedisClient ¶
func (r RedisFunc) MakeRedisClient() interface{}
type Server ¶
func NewServer ¶
func NewServer(opt asynq.RedisConnOpt, opts ...ServerOption) *Server
type ServerOption ¶
func WithConcurrency ¶
func WithConcurrency(c int) ServerOption
func WithQueues ¶
func WithQueues(q map[string]int) ServerOption
Click to show internal directories.
Click to hide internal directories.