fallback

package
v0.5.0-alpha.9 Latest Latest
Warning

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

Go to latest
Published: May 23, 2023 License: AGPL-3.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Client

type Client interface {
	ValidateBlock(ctx context.Context, block *types.BuilderBlockValidationRequest) (err error)
	ValidateBlockV2(ctx context.Context, block *types.BuilderBlockValidationRequestV2) (err error)
	Kind() string
}

type Fallback

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

func NewFallback

func NewFallback() *Fallback

func (*Fallback) AddClient

func (f *Fallback) AddClient(cli Client)

func (*Fallback) AttachMetrics

func (fb *Fallback) AttachMetrics(m *metrics.Metrics)

func (*Fallback) IsSet

func (f *Fallback) IsSet() bool

func (*Fallback) Len

func (f *Fallback) Len() int

func (*Fallback) ValidateBlock

func (f *Fallback) ValidateBlock(ctx context.Context, block *types.BuilderBlockValidationRequest) (err error)

func (*Fallback) ValidateBlockV2

func (f *Fallback) ValidateBlockV2(ctx context.Context, block *types.BuilderBlockValidationRequestV2) (err error)

type Metrics

type Metrics struct {
	ServedFrom *prometheus.CounterVec
}

Jump to

Keyboard shortcuts

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