hb

package
v0.0.0-...-3f873ad Latest Latest
Warning

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

Go to latest
Published: Dec 10, 2024 License: Apache-2.0 Imports: 27 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type T

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

func New

func New(_ context.Context, opts ...funcopt.O) *T

func (*T) Start

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

Start startup the heartbeat components

It starts: with ctx:

  • the hb controller to maintain heartbeat status and peers It is firstly started and lastly stopped
  • hb drivers

with cancelable context - the dispatcher of messages to send to hb tx components - the dispatcher of read messages from hb rx components to daemon data - the goroutine responsible for hb drivers lifecycle

func (*T) Stop

func (t *T) Stop() error

Directories

Path Synopsis
Package hbctrl manage data and status of daemon heartbeats
Package hbctrl manage data and status of daemon heartbeats
Package hbdisk implement a hb disk driver.
Package hbdisk implement a hb disk driver.
Package hbmcast implement a hb multicast driver
Package hbmcast implement a hb multicast driver
Package hbrelay uses a tiers opensvc agent as a kv store to exchange node data.
Package hbrelay uses a tiers opensvc agent as a kv store to exchange node data.
Package hbucast implement a hb unicast driver
Package hbucast implement a hb unicast driver

Jump to

Keyboard shortcuts

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