converter

package
v0.0.0-...-55f45e6 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2024 License: MIT Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Converter

type Converter interface {
	Fetch(config types.RPCFetchConfig) ([]ResultConvert, error)
}

Converter is the interface for retrieving the contents of a URL.

func NewConverter

func NewConverter(selector jsonselector.Selector) Converter

NewConverter creates a new Converter.

type ResultConvert

type ResultConvert struct {
	Selector   string
	MetricName string
	Value      float64
	Err        error
}

ResultConvert represents the result of a conversion.

Jump to

Keyboard shortcuts

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