delayTask

package module
v1.4.0 Latest Latest
Warning

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

Go to latest
Published: Sep 20, 2024 License: Apache-2.0 Imports: 11 Imported by: 0

README

delayTask

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CtxLogger

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

func GetLogger

func GetLogger() *logrus.Logger

Types

type Service

type Service struct {
	// 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)

Jump to

Keyboard shortcuts

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