heartbeat

package
v0.4.0-alpha.0 Latest Latest
Warning

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

Go to latest
Published: Jan 8, 2024 License: MIT Imports: 11 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 interface {
	Start(ctx context.Context) error
}

type HeartbeaterImpl

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

func New

func New(fs ...HeartbeaterOpt) (*HeartbeaterImpl, error)

func (*HeartbeaterImpl) Start

func (t *HeartbeaterImpl) Start(ctx context.Context) error

type HeartbeaterOpt

type HeartbeaterOpt func(*HeartbeaterOpts)

func WithLogger

func WithLogger(l *zerolog.Logger) HeartbeaterOpt

func WithRepository

func WithRepository(r repository.Repository) HeartbeaterOpt

func WithTaskQueue

func WithTaskQueue(tq taskqueue.TaskQueue) HeartbeaterOpt

type HeartbeaterOpts

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

Jump to

Keyboard shortcuts

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