service

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Jul 30, 2025 License: Apache-2.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Options

type Options struct {
	DB        *db.DB
	TaskQueue taskqueue.TaskQueue
}

type Service

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

func NewService

func NewService(opts Options) *Service

func (*Service) DeleteTask

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

func (*Service) GetTasks

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

func (*Service) ScheduleAttempts

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

Jump to

Keyboard shortcuts

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