workers

package
v0.0.0-...-ff237a8 Latest Latest
Warning

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

Go to latest
Published: Apr 26, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

View Source
const (
	TypeProcessSomeData = "random_pkg::process_some_data"
)

Variables

This section is empty.

Functions

func NewProcessSomeDataTask

func NewProcessSomeDataTask(someinfo string, processIn int) (*asynq.Task, error)

Types

type Service

type Service struct {
	Repository  *repo.Repository
	NewRelic    *newrelic.Application
	SomeService types.ISomeService
}

func Init

func Init(repo *repo.Repository, nrApp *newrelic.Application, someService types.ISomeService) *Service

func (*Service) HandleProcessSomeDataTask

func (s *Service) HandleProcessSomeDataTask(ctx context.Context, t *asynq.Task) error

Jump to

Keyboard shortcuts

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