heartbeat

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 2, 2022 License: Apache-2.0 Imports: 12 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Handler

type Handler interface {
	Start()
	Process(ctx context.Context, notification Notification) error
}

type Notification

type Notification struct {
	DeviceID  string
	Namespace string
	Heartbeat *models.Heartbeat
	Retry     int32
}

type SynchronousHandler

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

func NewSynchronousHandler

func NewSynchronousHandler(deviceRepository edgedevice.Repository, recorder record.EventRecorder) *SynchronousHandler

func (*SynchronousHandler) Process

func (h *SynchronousHandler) Process(ctx context.Context, notification Notification) error

func (*SynchronousHandler) Start

func (h *SynchronousHandler) Start()

type Updater

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

Jump to

Keyboard shortcuts

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