tasks

package
v0.0.0-...-4467ad0 Latest Latest
Warning

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

Go to latest
Published: Jan 31, 2025 License: AGPL-3.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type UpdateNodesTask

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

UpdateNodesTask periodically updates the registry of known Rocket Pool nodes. It uses the Rescue Proxy (primary) and Rocketscan (fallback) APIs to retrieve the list of nodes.

func NewUpdateNodesTask

func NewUpdateNodesTask(
	proxy, rocketscan string,
	nodes *models.NodeRegistry,
	secureGRPC bool,
	logger *zap.Logger,
) *UpdateNodesTask

func (*UpdateNodesTask) Run

func (t *UpdateNodesTask) Run()

func (*UpdateNodesTask) Stop

func (t *UpdateNodesTask) Stop() error

type UpdateWithdrawalAddressesTask

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

UpdateWithdrawalAddressesTask periodically updates the registry of known validators' withdrawal addreses It uses the Rescue Proxy APIsto retrieve the list of addresses.

func NewUpdateWithdrawalAddressesTask

func NewUpdateWithdrawalAddressesTask(
	proxy string,
	withdrawalAddresses *models.NodeRegistry,
	secureGRPC bool,
	logger *zap.Logger,
) *UpdateWithdrawalAddressesTask

func (*UpdateWithdrawalAddressesTask) Run

func (*UpdateWithdrawalAddressesTask) Stop

Jump to

Keyboard shortcuts

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