MCPcopy Create free account
hub / github.com/GoSimplicity/LinkMe / NewTimedTask

Function NewTimedTask

internal/job/timed_task.go:24–29  ·  view source on GitHub ↗
(l *zap.Logger, svc interfaces.RankingService)

Source from the content-addressed store, hash-verified

22}
23
24func NewTimedTask(l *zap.Logger, svc interfaces.RankingService) *TimedTask {
25 return &TimedTask{
26 l: l,
27 svc: svc,
28 }
29}
30
31func (t *TimedTask) ProcessTask(ctx context.Context, task *asynq.Task) error {
32 var payload TimedPayload

Callers 1

InitWebServerFunction · 0.92

Calls

no outgoing calls

Tested by

no test coverage detected