signalmgr

package
v0.33.0 Latest Latest
Warning

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

Go to latest
Published: Nov 19, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

View Source
const (
	QueueName               = "engine-signal-mgr"
	PriorityScheduleAll     = 2
	PriorityMaintCleanup    = 3
	PriorityScheduleService = 4
)

Variables

This section is empty.

Functions

func TriggerService

func TriggerService(ctx context.Context, r *river.Client[pgx.Tx], serviceID uuid.UUID) error

TriggerService will attempt to schedule messages for the given service immediately.

Types

type DB

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

DB schedules outgoing signal messages.

func NewDB

func NewDB(ctx context.Context, db *sql.DB) (*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

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

type MaintArgs

type MaintArgs struct{}

func (MaintArgs) Kind

func (MaintArgs) Kind() string

type SchedMsgsArgs

type SchedMsgsArgs struct {
	ServiceID uuid.NullUUID
}

func (SchedMsgsArgs) Kind

func (SchedMsgsArgs) Kind() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳