job

package
v0.0.0-...-44f477e Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: Apache-2.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// Mgr is a global variable for the default notification job
	Mgr = NewManager()
)

Functions

This section is empty.

Types

type Manager

type Manager interface {
	// Create create a notification job
	Create(ctx context.Context, job *model.Job) (int64, error)

	// List list notification jobs
	List(ctx context.Context, query *q.Query) ([]*model.Job, error)

	// Update update notification job
	Update(ctx context.Context, job *model.Job, props ...string) error

	// ListJobsGroupByEventType lists last triggered jobs group by event type
	ListJobsGroupByEventType(ctx context.Context, policyID int64) ([]*model.Job, error)

	// Count ...
	Count(ctx context.Context, query *q.Query) (total int64, err error)
}

Manager manages notification jobs recorded in database

func NewManager

func NewManager() Manager

NewManager ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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