Documentation ¶
Index ¶
- Variables
- type BellatrixHeaderWithSlot
- type CapellaHeaderWithSlot
- type Client
- func (s *Client) AttachMetrics(m *metrics.Metrics)
- func (s *Client) BlockCache() <-chan structs.BlockBidAndTrace
- func (s *Client) BuilderBid() <-chan structs.BuilderBidExtended
- func (s *Client) PublishBlockCache(ctx context.Context, block structs.BlockBidAndTrace) error
- func (s *Client) PublishBuilderBid(ctx context.Context, bid structs.BuilderBidExtended) error
- func (s *Client) PublishSlotDelivered(ctx context.Context, slot structs.Slot) error
- func (s *Client) RunBuilderBidSubscriber(ctx context.Context) error
- func (s *Client) RunCacheSubscriber(ctx context.Context) error
- func (s *Client) RunSlotDeliveredSubscriber(ctx context.Context) error
- func (s *Client) RunSubscriberParallel(ctx context.Context, num uint) error
- type EncoderSSZ
- type ForkVersionFormat
- type HeaderWithSlot
- type JsonItem
- type Metadata
- type Pubsub
- type State
- type StreamConfig
- type StreamData
- type StreamMetrics
Constants ¶
This section is empty.
Variables ¶
View Source
var ( CacheTopic = "/block/cache" BidTopic = "/block/bid" SlotDeliveredTopic = "/slot/delivered" )
View Source
var (
ErrDecodeVarint = errors.New("error decoding varint value")
)
Functions ¶
This section is empty.
Types ¶
type BellatrixHeaderWithSlot ¶
type BellatrixHeaderWithSlot struct { ExecutionPayloadHeader bellatrix.ExecutionPayloadHeader HeaderSlot uint64 }
func (BellatrixHeaderWithSlot) Header ¶
func (b BellatrixHeaderWithSlot) Header() structs.ExecutionPayloadHeader
func (BellatrixHeaderWithSlot) Slot ¶
func (b BellatrixHeaderWithSlot) Slot() uint64
type CapellaHeaderWithSlot ¶
type CapellaHeaderWithSlot struct { ExecutionPayloadHeader capella.ExecutionPayloadHeader HeaderSlot uint64 }
func (CapellaHeaderWithSlot) Header ¶
func (b CapellaHeaderWithSlot) Header() structs.ExecutionPayloadHeader
func (CapellaHeaderWithSlot) Slot ¶
func (b CapellaHeaderWithSlot) Slot() uint64
type Client ¶
type Client struct { Pubsub Pubsub Config StreamConfig Logger log.Logger // contains filtered or unexported fields }
func (*Client) AttachMetrics ¶
func (*Client) BlockCache ¶
func (s *Client) BlockCache() <-chan structs.BlockBidAndTrace
func (*Client) BuilderBid ¶
func (s *Client) BuilderBid() <-chan structs.BuilderBidExtended
func (*Client) PublishBlockCache ¶
func (*Client) PublishBuilderBid ¶
func (*Client) PublishSlotDelivered ¶
func (*Client) RunBuilderBidSubscriber ¶
func (*Client) RunSlotDeliveredSubscriber ¶
type EncoderSSZ ¶
type ForkVersionFormat ¶
type ForkVersionFormat uint64
const ( Unknown ForkVersionFormat = iota AltairJson BellatrixJson CapellaJson CapellaSSZ )
type HeaderWithSlot ¶
type HeaderWithSlot struct { ExecutionPayloadHeader structs.ExecutionPayloadHeader HeaderSlot uint64 }
type JsonItem ¶
type JsonItem struct { StreamMeta Metadata StreamData json.RawMessage }
type StreamConfig ¶
type StreamData ¶
type StreamMetrics ¶
type StreamMetrics struct { StreamRecvCounter *prometheus.CounterVec Timing *prometheus.HistogramVec }
Click to show internal directories.
Click to hide internal directories.