queuestatus

package
v0.0.0-...-a548ab7 Latest Latest
Warning

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

Go to latest
Published: Dec 18, 2024 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Mgr default user group manager
	Mgr = newManager()
)

Functions

This section is empty.

Types

type Manager

type Manager interface {
	// List list queue status
	List(ctx context.Context) ([]*model.JobQueueStatus, error)
	// AllJobTypeStatus get all job type status
	AllJobTypeStatus(ctx context.Context) (map[string]bool, error)
	// Get get queue status by JobType
	Get(ctx context.Context, jobType string) (*model.JobQueueStatus, error)
	// UpdateStatus update queue status
	UpdateStatus(ctx context.Context, jobType string, paused bool) error
	// CreateOrUpdate create a queue status or update it if it already exists
	CreateOrUpdate(ctx context.Context, status *model.JobQueueStatus) (int64, error)
}

Manager the manager for queue status

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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