job

package
v1.1.5 Latest Latest
Warning

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

Go to latest
Published: Nov 8, 2024 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func NewDistributeLockManager

func NewDistributeLockManager(name string) scheduler.LockManager

func TestJob

func TestJob(conf *config.Config)

func TestTimeoutJob

func TestTimeoutJob(conf *config.Config)

Types

type DistributeLockManager

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

func (*DistributeLockManager) Release added in v1.1.3

func (manager *DistributeLockManager) Release(ctx context.Context) error

func (*DistributeLockManager) TryLock

func (manager *DistributeLockManager) TryLock(ctx context.Context) error

type ServiceProvider

type ServiceProvider struct{}

func (ServiceProvider) Aggregates

func (j ServiceProvider) Aggregates() []infra.Provider

func (ServiceProvider) Boot

func (j ServiceProvider) Boot(app infra.Resolver)

func (ServiceProvider) Register

func (j ServiceProvider) Register(cc infra.Binder)

func (ServiceProvider) ShouldLoad

func (j ServiceProvider) ShouldLoad(c infra.FlagContext) bool

Jump to

Keyboard shortcuts

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