beat

package
v0.14.0 Latest Latest
Warning

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

Go to latest
Published: Mar 13, 2025 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Beat

type Beat struct {
	C              chan event.GenericEvent
	TickerDuration time.Duration
}

Beat put a generic event on a channel after a certain time (e.g.: every day).

func NewBeat

func NewBeat(tickerDuration time.Duration) *Beat

NewBeat instantiate a beat.

func (*Beat) Start

func (b *Beat) Start(ctx context.Context) error

Start watches for events on a channel after a certain time (e.g.: every day). It's designed to be run by a manager.

Jump to

Keyboard shortcuts

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