crawlerdb

package
v0.0.0-...-1d34b96 Latest Latest
Warning

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

Go to latest
Published: Dec 8, 2023 License: GPL-3.0, MIT Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func CreateDB

func CreateDB(db *sql.DB) error

func UpdateNodes

func UpdateNodes(db *sql.DB, geoipDB *geoip2.Reader, nodes []common.NodeJSON) error

Types

type CrawledNode

type CrawledNode struct {
	ID              string
	Now             string
	ClientType      string
	SoftwareVersion uint64
	Capabilities    string
	NetworkID       uint64
	Country         string
	ForkID          string
}

func ReadAndDeleteUnseenNodes

func ReadAndDeleteUnseenNodes(db *sql.Tx) ([]CrawledNode, error)

type ETH2

type ETH2 []byte

ETH2 is a SSZ encoded field.

func (ETH2) ENRKey

func (v ETH2) ENRKey() string

Jump to

Keyboard shortcuts

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