delayTask

package module
v1.5.75 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 9, 2026 License: Apache-2.0 Imports: 16 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

README

⚠️ Deprecated: delayTask is no longer maintained

This project is no longer maintained and has been archived.
No further updates, issues, or pull requests will be accepted.

If you still rely on this package, please fork it and maintain your own version.

delayTask

usage

    dt:= delayTask.NewService("sample:svc", redisClient),

	dt.RegisterEventFunc(roomWorkerMessage.QEndChengFa, svr.EndChengFaHandleV1)
	dt.RegisterEventFunc(roomWorkerMessage.QEndPk, svr.EndPkHandleV1)
	
	dt.RegisterEvent(roomWorkerMessage.QEndChengFa,"",10)

Documentation

Overview

Package delayTask provides a Redis-backed delayed task queue.

Deprecated: delayTask is no longer maintained and will not receive further updates. Please fork the repository if you need to continue using it.

Index

Constants

This section is empty.

Variables

View Source
var RetryErr = fmt.Errorf("retry")

RetryErr indicates that an event should be retried.

Deprecated: delayTask is no longer maintained.

Functions

func CtxLogger deprecated

func CtxLogger(ctx context.Context) *logrus.Entry

Deprecated: delayTask is no longer maintained.

func GetLogger deprecated

func GetLogger() *logrus.Logger

Deprecated: delayTask is no longer maintained.

Types

type Service deprecated

type Service struct {
	// contains filtered or unexported fields
}

Service manages delayed events backed by Redis.

Deprecated: delayTask is no longer maintained.

func NewService deprecated

func NewService(caller string, redis redis.UniversalClient) *Service

Deprecated: delayTask is no longer maintained.

func (*Service) Debug deprecated added in v1.5.7

func (s *Service) Debug() bool

Deprecated: delayTask is no longer maintained.

func (*Service) Publish deprecated added in v1.5.7

func (s *Service) Publish(name string, args string, delay int64) error

Deprecated: delayTask is no longer maintained.

func (*Service) RegisterEvent deprecated

func (s *Service) RegisterEvent(name string, args string, delay int64) error

RegisterEvent registers a delayed event.

Deprecated: use Service.Publish instead.

func (*Service) RegisterEventFunc deprecated

func (s *Service) RegisterEventFunc(name string, f func(p string) error)

Deprecated: delayTask is no longer maintained.

Directories

Path Synopsis
Package exporter exposes delayTask metrics to Prometheus.
Package exporter exposes delayTask metrics to Prometheus.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址