processing

package
v0.0.0-...-8636a34 Latest Latest
Warning

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

Go to latest
Published: May 25, 2025 License: MIT Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

func NewService

func NewService(repo repository.Repository, storage storage.Storage, config ServiceConfig) *Service

func (*Service) Start

func (s *Service) Start()

func (*Service) Stop

func (s *Service) Stop(ctx context.Context)

func (*Service) SubmitTask

func (s *Service) SubmitTask(task model.ImageProcessingTask)

type ServiceConfig

type ServiceConfig struct {
	WorkerPoolSize  int
	PollingInterval time.Duration
	TaskBatchSize   int
}

Jump to

Keyboard shortcuts

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