workheartbeat

package
v0.0.183 Latest Latest
Warning

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

Go to latest
Published: Sep 22, 2025 License: MIT Imports: 12 Imported by: 0

Documentation

Overview

Package workheartbeat provides working logic for a heartbeat job.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Provide

func Provide() fx.Option

Provide the worker as a dependecy.

Types

type Config

type Config struct{}

type Params

type Params struct {
	fx.In
	Config
	RW        *stdtx.Transactor[pgx.Tx] `name:"rw"`
	Validator protovalidate.Validator
}

type Result added in v0.0.129

type Result struct {
	fx.Out
	Worker    river.Worker[*workheartbeatv1.Args]
	Periodics stdriverfx.PeriodicWorker `group:"periodic_workers"`
}

func New

func New(par Params) (Result, error)

Directories

Path Synopsis
Package workheartbeatv1 provides proto-generated code.
Package workheartbeatv1 provides proto-generated code.

Jump to

Keyboard shortcuts

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