seed

package
v0.2300.2 Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2023 License: Apache-2.0 Imports: 21 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

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

Service is the seed node service.

func New

func New(dataDir string, identity *identity.Identity, genesisProvider genesis.Provider) (*Service, error)

New creates a new seed node service.

func (*Service) Cleanup

func (s *Service) Cleanup()

Cleanup implements service.BackgroundService.

func (*Service) GetAddresses

func (s *Service) GetAddresses() ([]node.ConsensusAddress, error)

GetAddresses returns a list of configured external addresses.

func (*Service) GetChainContext

func (s *Service) GetChainContext() string

GetChainContext returns chain context from which network/chain ID was derived.

func (*Service) GetPeers

func (s *Service) GetPeers() []string

GetPeers returns a list of peers that are connected to the seed.

func (*Service) Name

func (s *Service) Name() string

Name implements service.BackgroundService.

func (*Service) Quit

func (s *Service) Quit() <-chan struct{}

Quit implements service.BackgroundService.

func (*Service) Start

func (s *Service) Start() error

Start implements service.BackgroundService.

func (*Service) Stop

func (s *Service) Stop()

Stop implements service.BackgroundService.

Jump to

Keyboard shortcuts

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