bidcollect

package
v1.11.0 Latest Latest
Warning

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

Go to latest
Published: Dec 4, 2025 License: AGPL-3.0 Imports: 17 Imported by: 0

Documentation

Overview

Package bidcollect contains code for bid collection from various sources.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DataAPIToCommonBids

func DataAPIToCommonBids(bids DataAPIPollerBidsMsg) []*types.CommonBid

func UltrasoundStreamToCommonBid

func UltrasoundStreamToCommonBid(bid *UltrasoundStreamBidsMsg) *types.CommonBid

Types

type BidCollector

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

func NewBidCollector

func NewBidCollector(opts *BidCollectorOpts) (c *BidCollector, err error)

func (*BidCollector) MustStart

func (c *BidCollector) MustStart()

type BidCollectorOpts

type BidCollectorOpts struct {
	Log *logrus.Entry
	UID string

	CollectUltrasoundStream bool
	CollectGetHeader        bool
	CollectDataAPI          bool

	Relays        []common.RelayEntry
	BeaconNodeURI string // for getHeader

	OutDir    string
	OutputTSV bool

	RedisAddr string
	UseRedis  bool
}

type BidProcessor

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

func NewBidProcessor

func NewBidProcessor(opts *BidProcessorOpts) (*BidProcessor, error)

func (*BidProcessor) Start

func (c *BidProcessor) Start()

type BidProcessorOpts

type BidProcessorOpts struct {
	Log       *logrus.Entry
	UID       string
	OutDir    string
	OutputTSV bool
	RedisAddr string
	UseRedis  bool
}

type DataAPIPoller

type DataAPIPoller struct {
	Log    *logrus.Entry
	BidC   chan DataAPIPollerBidsMsg
	Relays []common.RelayEntry
}

func NewDataAPIPoller

func NewDataAPIPoller(opts *DataAPIPollerOpts) *DataAPIPoller

func (*DataAPIPoller) Start

func (poller *DataAPIPoller) Start()

type DataAPIPollerBidsMsg

type DataAPIPollerBidsMsg struct {
	Bids       []relaycommon.BidTraceV2WithTimestampJSON
	Relay      common.RelayEntry
	ReceivedAt time.Time
}

type DataAPIPollerOpts

type DataAPIPollerOpts struct {
	Log    *logrus.Entry
	BidC   chan DataAPIPollerBidsMsg
	Relays []common.RelayEntry
}

type GetHeaderPoller

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

func NewGetHeaderPoller

func NewGetHeaderPoller(opts *GetHeaderPollerOpts) *GetHeaderPoller

func (*GetHeaderPoller) Start

func (poller *GetHeaderPoller) Start()

type GetHeaderPollerBidsMsg

type GetHeaderPollerBidsMsg struct {
	Slot       uint64
	Bid        types.GetHeaderResponse
	Relay      common.RelayEntry
	ReceivedAt time.Time
}

type GetHeaderPollerOpts

type GetHeaderPollerOpts struct {
	Log       *logrus.Entry
	BidC      chan GetHeaderPollerBidsMsg
	BeaconURI string
	Relays    []common.RelayEntry
}

type OutFiles

type OutFiles struct {
	FAll *os.File
	FTop *os.File
}

type UltrasoundStreamBidsMsg

type UltrasoundStreamBidsMsg struct {
	Bid        common.UltrasoundStreamBid
	Relay      string
	ReceivedAt time.Time
}

type UltrasoundStreamConnection

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

func NewUltrasoundStreamConnection

func NewUltrasoundStreamConnection(opts UltrasoundStreamOpts) *UltrasoundStreamConnection

func (*UltrasoundStreamConnection) Start

func (ustream *UltrasoundStreamConnection) Start()

type UltrasoundStreamOpts

type UltrasoundStreamOpts struct {
	Log  *logrus.Entry
	BidC chan UltrasoundStreamBidsMsg
}

Directories

Path Synopsis
Package types contains various types, consts and vars for bidcollect
Package types contains various types, consts and vars for bidcollect
Package webserver provides a SSE stream of new bids (via Redis subscription)
Package webserver provides a SSE stream of new bids (via Redis subscription)
Package website contains the service delivering the website
Package website contains the service delivering the website

Jump to

Keyboard shortcuts

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