v2

package
v0.0.0-...-290aaca Latest Latest
Warning

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

Go to latest
Published: Oct 14, 2022 License: MIT Imports: 12 Imported by: 0

Documentation

Index

Constants

View Source
const (
	UA = "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/104.0.0.0 Safari/537.36"
)

Variables

View Source
var (
	SafeMap = cmap.New[*Pool]()
)

Functions

func Loop

func Loop()

Types

type Config

type Config struct {
	Duration   time.Duration `yaml:"duration"`
	Blockchain []struct {
		PubGetFieldRule   map[string]string `yaml:"pub_get_field_rule"`
		PrivyGetFieldRule map[string]string `yaml:"privy_get_field_rule"`
		Name              string            `yaml:"name"`
		PubNode           []Node            `yaml:"pub_node"`
		PrivyNode         []Node            `yaml:"privy_node"`
	} `yaml:"blockchain"`
}
var (
	Cfg Config
)

type Entry

type Entry struct {
	Val float64
	Tag map[string]string
}

type Node

type Node struct {
	URL    string `yaml:"url"`
	Name   string `yaml:"name"`
	Method string `yaml:"method"`
	Body   string `yaml:"body"`
}

type Pool

type Pool struct {
	Pub   Entry
	Privy Entry
}

Jump to

Keyboard shortcuts

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