joblock

package
v1.0.55 Latest Latest
Warning

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

Go to latest
Published: Dec 24, 2024 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type JobLock

type JobLock struct {
	ID     primitive.ObjectID `json:"_id" bson:"_id"`
	Name   string             `json:"name" bson:"name"`
	Expiry time.Time          `json:"expiry" bson:"expiry"`
}

type JobLockTask

type JobLockTask struct {
	Name     string
	Arg      func()
	Interval time.Duration
	Timeout  time.Duration
	Debug    bool
	// contains filtered or unexported fields
}

func (*JobLockTask) Run

func (t *JobLockTask) Run(ctx context.Context) error

func (*JobLockTask) UnLock

func (t *JobLockTask) UnLock(ctx context.Context) error

Jump to

Keyboard shortcuts

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