seeder

package
v0.10.0 Latest Latest
Warning

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

Go to latest
Published: Mar 7, 2025 License: Apache-2.0 Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Dir        string
	ChainID    string
	Logger     log.Logger
	ListenAddr string
	PeerKey    crypto.PrivateKey
}

type Seeder

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

func NewSeeder

func NewSeeder(cfg *Config) (*Seeder, error)

func (*Seeder) NumKnownPeers

func (s *Seeder) NumKnownPeers() int

func (*Seeder) Start

func (s *Seeder) Start(ctx context.Context, bootpeers ...string) error

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
JackTT - Gopher 🇻🇳