Help us shape the future of Go! Take the 2026 Go Developer Survey

task

package
v1.2.0 Latest Latest
Warning

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

Go to latest
Published: Aug 18, 2026 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type TaskService

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

func NewTaskService

func NewTaskService(log *zap.SugaredLogger, db *db.DB, queue taskqueue.TaskQueue) *TaskService

func (*TaskService) DeleteTask

func (s *TaskService) DeleteTask(ctx context.Context, task *taskqueue.TaskMessage) error

func (*TaskService) DeleteTasks

func (s *TaskService) DeleteTasks(ctx context.Context, ids []string) error

func (*TaskService) GetTasks

func (s *TaskService) GetTasks(ctx context.Context, opts *taskqueue.GetOptions) ([]*taskqueue.TaskMessage, error)

func (*TaskService) NotificationChannel

func (s *TaskService) NotificationChannel() <-chan struct{}

func (*TaskService) Notify

func (s *TaskService) Notify()

func (*TaskService) ScheduleAttempts

func (s *TaskService) ScheduleAttempts(ctx context.Context, attempts []*entities.Attempt)

func (*TaskService) ScheduleTask

func (s *TaskService) ScheduleTask(ctx context.Context, id string, scheduledAt time.Time) error

Jump to

Keyboard shortcuts

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