blockprint

package
v0.0.169 Latest Latest
Warning

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

Go to latest
Published: May 1, 2024 License: GPL-3.0 Imports: 20 Imported by: 0

Documentation

Index

Constants

View Source
const (
	BlockClassificationName = xatu.CannonType_BLOCKPRINT_BLOCK_CLASSIFICATION
)

Variables

This section is empty.

Functions

func GetSlotEpochTimings

func GetSlotEpochTimings(slot phase0.Slot, wallclock *ethwallclock.EthereumBeaconChain) (*xatu.SlotV2, *xatu.EpochV2)

Types

type BlockClassificationDeriver

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

func (*BlockClassificationDeriver) ActivationFork added in v0.0.140

func (b *BlockClassificationDeriver) ActivationFork() string

func (*BlockClassificationDeriver) CannonType

func (b *BlockClassificationDeriver) CannonType() xatu.CannonType

func (*BlockClassificationDeriver) Name

func (*BlockClassificationDeriver) OnEventsDerived

func (b *BlockClassificationDeriver) OnEventsDerived(ctx context.Context, fn func(ctx context.Context, events []*xatu.DecoratedEvent) error)

func (*BlockClassificationDeriver) Start

func (*BlockClassificationDeriver) Stop

type BlockClassificationDeriverConfig

type BlockClassificationDeriverConfig struct {
	Enabled   bool              `yaml:"enabled" default:"false"`
	Endpoint  string            `yaml:"endpoint" default:"http://localhost:8080"`
	Headers   map[string]string `yaml:"headers"`
	BatchSize int               `yaml:"batchSize" default:"50"`
}

func (*BlockClassificationDeriverConfig) Validate

Jump to

Keyboard shortcuts

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