Help us shape the future of Go! Take the 2026 Go Developer Survey

pings

package
v1.5.1 Latest Latest
Warning

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

Go to latest
Published: Oct 26, 2026 License: MIT Imports: 4 Imported by: 0

Documentation

Overview

Package pings provides utilities for creating and handling ping tasks.

Index

Constants

View Source
const IsPingMetadataKey = "is-ping"

IsPingMetadataKey is the metadata key used to identify ping tasks.

View Source
const IsPingMetadataValue = "true"

IsPingMetadataValue is the metadata value used to mark a task as a ping.

View Source
const PingTimestampMetadataKey = "ping-timestamp"

PingTimestampMetadataKey is the metadata key for storing ping timestamp.

Variables

This section is empty.

Functions

func IsTaskAPing

func IsTaskAPing(taskMetadata map[string]string) (bool, time.Time)

IsTaskAPing checks if the task is a ping by checking the metadata.

func NewProcessHitsPingTask

func NewProcessHitsPingTask(
	encoder encoding.EncoderFunc,
) func() (*worker.Task, error)

NewProcessHitsPingTask creates a new empty process hits task. It may be used in conjunction with pinging publisher to make the handler advance processing ticks.

Types

This section is empty.

Jump to

Keyboard shortcuts

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