Documentation ¶
Index ¶
- Constants
- type BellatrixHeaderWithSlot
- type CapellaHeaderWithSlot
- type Client
- func (s *Client) BlockCache() <-chan structs.BlockAndTraceExtended
- func (s *Client) BuilderBid() <-chan structs.BuilderBidExtended
- func (c *Client) Close() error
- func (s *Client) PublishBlockCache(ctx context.Context, block structs.BlockAndTraceExtended) error
- func (s *Client) PublishBuilderBid(ctx context.Context, bid structs.BuilderBidExtended) error
- func (s *Client) PublishSlotDelivered(ctx context.Context, slot structs.Slot) error
- type EncoderSSZ
- type HeaderWithSlot
- type Metrics
- type PubSub
- type State
Constants ¶
View Source
const ( CacheTopic = "/block/cache" BidTopic = "/block/bid" SlotDeliveredTopic = "/slot/delivered" )
Variables ¶
This section is empty.
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 { Logger log.Logger Bids, Cache PubSub QueueSize, NumWorkers int Metrics Metrics // contains filtered or unexported fields }
func (*Client) BlockCache ¶
func (s *Client) BlockCache() <-chan structs.BlockAndTraceExtended
func (*Client) BuilderBid ¶
func (s *Client) BuilderBid() <-chan structs.BuilderBidExtended
func (*Client) PublishBlockCache ¶
func (*Client) PublishBuilderBid ¶
type EncoderSSZ ¶
type HeaderWithSlot ¶
type HeaderWithSlot struct { ExecutionPayloadHeader structs.ExecutionPayloadHeader HeaderSlot uint64 }
type Metrics ¶ added in v0.6.2
type Metrics interface {
Register(prometheus.Collector) error
}
Click to show internal directories.
Click to hide internal directories.