rotationmanager

package
v0.35.0 Latest Latest
Warning

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

Go to latest
Published: Sep 15, 2026 License: Apache-2.0 Imports: 12 Imported by: ? modules, 0 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

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