delayTask

package module
v1.5.2 Latest Latest
Warning

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

Go to latest
Published: Mar 19, 2025 License: Apache-2.0 Imports: 11 Imported by: 0

README

delayTask

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func CtxLogger

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

func GetLogger

func GetLogger() *logrus.Logger

Types

type Service

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

func NewService

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

func (*Service) RegisterEvent

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

func (*Service) RegisterEventFunc

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

func (*Service) SetDebug added in v1.5.0

func (s *Service) SetDebug(debug bool)

Jump to

Keyboard shortcuts

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