heartbeater

package
v0.19.985 Latest Latest
Warning

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

Go to latest
Published: May 31, 2026 License: AGPL-3.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Heartbeater

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

func New

func New(params Params) *Heartbeater

func (*Heartbeater) Send

func (h *Heartbeater) Send(hb app.RunnerHeartBeat)

Send enqueues a heartbeat for batched writing to ClickHouse. The heartbeat must have ID, CreatedByID, and CreatedAt pre-populated.

type Params

type Params struct {
	fx.In

	CHDB *gorm.DB `name:"ch"`
	L    *zap.Logger
	MW   metrics.Writer
	LC   fx.Lifecycle
	Cfg  *internal.Config
}

Jump to

Keyboard shortcuts

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