pulsar

package
v0.0.0-...-42841ab Latest Latest
Warning

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

Go to latest
Published: Oct 30, 2022 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OnSecond = "pulsar.OnSecond"
	OnMinute = "pulsar.OnMinute"
	OnHour   = "pulsar.OnHour"
)

Variables

This section is empty.

Functions

This section is empty.

Types

type IHourPulsar

type IHourPulsar interface {
	IPulsar
}

func HourPulsar

func HourPulsar() IHourPulsar

type IMinutePulsar

type IMinutePulsar interface {
	IPulsar
}

func MinutePulsar

func MinutePulsar() IMinutePulsar

type IPulsar

type IPulsar interface {
	comps.ISpokePlugin
	IAmPulsar()
}

IPulsar is an active component that triggers a pulse at a certain interval and publishes it onto the Mediator.

func NewPulsar

func NewPulsar(name string, topic string, interval time.Duration) IPulsar

type ISecondPulsar

type ISecondPulsar interface {
	IPulsar
}

func SecondPulsar

func SecondPulsar() ISecondPulsar

type OnPulseFunc

type OnPulseFunc func(ctx context.Context) error

Jump to

Keyboard shortcuts

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