static

package
v0.0.141 Latest Latest
Warning

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

Go to latest
Published: Jan 12, 2024 License: GPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

View Source
const Type = "static"

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	BootNodes []string      `yaml:"bootNodes"`
	DiscV4    bool          `yaml:"discV4" default:"true"`
	DiscV5    bool          `yaml:"discV5" default:"true"`
	Restart   time.Duration `yaml:"restart" default:"2m"`
}

func (*Config) Validate

func (c *Config) Validate() error

type Static

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

func New

func New(config *Config, handler func(ctx context.Context, node *enode.Node, source string) error, log logrus.FieldLogger) (*Static, error)

func (*Static) Start

func (s *Static) Start(ctx context.Context) error

func (*Static) Stop

func (s *Static) Stop(ctx context.Context) error

func (*Static) Type

func (s *Static) Type() string

Jump to

Keyboard shortcuts

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