rotationmanager

package
v0.34.0 Latest Latest
Warning

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

Go to latest
Published: Aug 22, 2025 License: Apache-2.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QueueName         = "rotation-manager"
	PriorityScheduled = 1
	PriorityEvent     = 2
	PriorityLFW       = 4
)

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

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

DB manages rotations in Postgres.

func NewDB

func NewDB(ctx context.Context, db *sql.DB, riverDBSQL *river.Client[*sql.Tx]) (*DB, error)

NewDB will create a new DB, preparing all statements necessary.

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{}

func (LookForWorkArgs) Kind added in v0.34.0

func (LookForWorkArgs) Kind() string

type UpdateArgs added in v0.34.0

type UpdateArgs struct {
	RotationID uuid.UUID
}

func (UpdateArgs) Kind added in v0.34.0

func (UpdateArgs) Kind() string

Jump to

Keyboard shortcuts

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