spider

package
v0.16.3 Latest Latest
Warning

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

Go to latest
Published: Oct 16, 2025 License: Unlicense Imports: 16 Imported by: 0

Documentation

Index

Constants

View Source
const (
	OneTimeSpiderSyncMarker = "spider_one_time_sync_completed"
	SpiderLastScanMarker    = "spider_last_scan_time"
	// MaxWebSocketMessageSize is the maximum size for WebSocket messages to avoid 32KB limit
	MaxWebSocketMessageSize = 30 * 1024 // 30KB to be safe
	// PubkeyHexSize is the size of a hex-encoded pubkey (32 bytes = 64 hex chars)
	PubkeyHexSize = 64
)

Variables

This section is empty.

Functions

This section is empty.

Types

type Spider

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

func New

func New(
	db *database.D, cfg *config.C, ctx context.Context,
	cancel context.CancelFunc,
) *Spider

func (*Spider) Start

func (s *Spider) Start()

Start initializes the spider functionality based on configuration

func (*Spider) Stop

func (s *Spider) Stop()

Stop stops the spider functionality

Source Files

  • spider.go

Jump to

Keyboard shortcuts

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