bootnode

package
v0.0.11 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2022 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var Command = cobra.Command{
	Use:   "bootnode",
	Short: "Starts a bootnode",
	Long:  "Boot nodes do nothing put seed the peer table",
	Run:   bootNode}

Command is the cobra.Command specifically for running as an edge node, i.e. not a validator or relay

Functions

This section is empty.

Types

type LastConnectionCache added in v0.0.8

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

LastConnectionCache stores the last time a node was connected to the bootnode

type Server

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

Server implements the bootnode protocol

func (*Server) KnownNodes

func (bn *Server) KnownNodes(ctx context.Context, r *pb.BootNodeRequest) (*pb.BootNodeResponse, error)

KnownNodes returns a set of recently seen peers when the bootnode is connected to

Jump to

Keyboard shortcuts

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