node

package
v1.0.0-alpha.6.5 Latest Latest
Warning

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

Go to latest
Published: May 27, 2020 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Overview

Package node is the main process which handles the lifecycle of the runtime services in a slasher process, gracefully shutting everything down upon close.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type SlasherNode

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

SlasherNode defines a struct that handles the services running a slashing detector for eth2. It handles the lifecycle of the entire system and registers services to a service registry.

func NewSlasherNode

func NewSlasherNode(cliCtx *cli.Context) (*SlasherNode, error)

NewSlasherNode creates a new node instance, sets up configuration options, and registers every required service.

func (*SlasherNode) Close

func (s *SlasherNode) Close()

Close handles graceful shutdown of the system.

func (*SlasherNode) Start

func (s *SlasherNode) Start()

Start the slasher and kick off every registered service.

Jump to

Keyboard shortcuts

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