executor

package
v1.36.2 Latest Latest
Warning

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

Go to latest
Published: Mar 21, 2026 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func AsWorkerTask

func AsWorkerTask(provider any) any

func Module

func Module() fx.Option

Types

type PeriodicTask

type PeriodicTask interface {
	Name() string
	Interval() time.Duration
	Run(ctx context.Context) error
}

type Service

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

func NewService

func NewService(tasks []PeriodicTask, locker locker.Locker, metrics *metrics, logger *zap.Logger) *Service

func (*Service) Run added in v1.36.0

func (s *Service) Run(ctx context.Context) error

Jump to

Keyboard shortcuts

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