job

package
v0.0.0-...-ee14de5 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2023 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

Functions

This section is empty.

Types

type Instance

type Instance struct {
	Service pkg.JobService
	// contains filtered or unexported fields
}

func ProvideInstance

func ProvideInstance(ctx context.Context, svc pkg.JobService) *Instance

type Service

type Service struct {
	sync.RWMutex
	// contains filtered or unexported fields
}

func ProvideService

func ProvideService(ctx context.Context, logger *slog.Logger, bgWorkerNum int) (*Service, func())

func (*Service) FetchByExtensionId

func (s *Service) FetchByExtensionId(ctx context.Context, extensionId string) ([]*pkg.Job, error)

func (*Service) PatchStatus

func (s *Service) PatchStatus(ctx context.Context, id, modifier string, status pkg.JobStatus, statusDetail string) error

func (*Service) Register

func (s *Service) Register(ctx context.Context, extensionId, repositoryUrl, creator string) (*pkg.Job, error)

Jump to

Keyboard shortcuts

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