statusmgr

package
v0.34.1 Latest Latest
Warning

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

Go to latest
Published: Sep 29, 2025 License: Apache-2.0 Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QueueName           = "status-manager"
	PriorityLookForWork = 2
	PriorityCleanup     = 3
	PriorityProcess     = 4
)

Variables

This section is empty.

Functions

This section is empty.

Types

type CleanupArgs added in v0.34.0

type CleanupArgs struct{}

func (CleanupArgs) Kind added in v0.34.0

func (CleanupArgs) Kind() string

type DB

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

DB manages outgoing status updates.

func NewDB

func NewDB(ctx context.Context, db *sql.DB, reg *nfydest.Registry, cfg config.Source) (*DB, error)

NewDB creates a new DB.

func (*DB) Name

func (db *DB) Name() string

Name returns the name of the module.

func (*DB) Setup added in v0.34.0

func (db *DB) Setup(ctx context.Context, args processinglock.SetupArgs) error

Setup implements processinglock.Setupable.

type LookForWorkArgs added in v0.34.0

type LookForWorkArgs struct {
	AlertID int64 `json:",omitempty"`
}

func (LookForWorkArgs) Kind added in v0.34.0

func (LookForWorkArgs) Kind() string

type ProcessArgs added in v0.34.0

type ProcessArgs struct {
	SubscriptionID int64
}

ProcessArgs is the arguments for processing a single subscription.

func (ProcessArgs) Kind added in v0.34.0

func (ProcessArgs) Kind() string

Jump to

Keyboard shortcuts

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