runner

package
v1.9.0 Latest Latest
Warning

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

Go to latest
Published: Aug 7, 2024 License: MIT Imports: 29 Imported by: 0

Documentation

Index

Constants

View Source
const Namespace = "op_challenger_runner"

Variables

View Source
var (
	ErrUnexpectedStatusCode = errors.New("unexpected status code")
)

Functions

This section is empty.

Types

type Metricer

type Metricer interface {
	vm.Metricer
	contractMetrics.ContractMetricer

	RecordFailure(vmType types.TraceType)
	RecordInvalid(vmType types.TraceType)
	RecordSuccess(vmType types.TraceType)
}

type Metrics

type Metrics struct {
	*contractMetrics.ContractMetrics
	// contains filtered or unexported fields
}

func NewMetrics

func NewMetrics() *Metrics

func (*Metrics) RecordFailure

func (m *Metrics) RecordFailure(vmType types.TraceType)

func (*Metrics) RecordInvalid

func (m *Metrics) RecordInvalid(vmType types.TraceType)

func (*Metrics) RecordSuccess

func (m *Metrics) RecordSuccess(vmType types.TraceType)

func (*Metrics) RecordVmExecutionTime

func (m *Metrics) RecordVmExecutionTime(vmType string, dur time.Duration)

func (*Metrics) RecordVmMemoryUsed

func (m *Metrics) RecordVmMemoryUsed(vmType string, memoryUsed uint64)

func (*Metrics) Registry

func (m *Metrics) Registry() *prometheus.Registry

type Runner

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

func NewRunner

func NewRunner(logger log.Logger, cfg *config.Config) *Runner

func (*Runner) Start

func (r *Runner) Start(ctx context.Context) error

func (*Runner) Stop

func (r *Runner) Stop(ctx context.Context) error

func (*Runner) Stopped

func (r *Runner) Stopped() bool

Jump to

Keyboard shortcuts

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