types

package
v0.0.0-...-d614328 Latest Latest
Warning

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

Go to latest
Published: Nov 6, 2023 License: MIT Imports: 0 Imported by: 4 modules, 5 packages

The first number is the count of modules that contain a package that imports this one. The module count is a better indicator of popularity than the package count. A module with 100 importing packages is counted only once instead of 100 times, reflecting the fact that the choice to use the package was likely made only once, not 100 times.
A '?' means that the value hasn't been computed yet.

Documentation

Overview

Package types implements shared types

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Asset

type Asset struct {
	Token  string `json:"token"`
	Amount string `json:"amount"`
}

Asset denote the format for an amount of specific tokens

type Endpoints

type Endpoints struct {
	Hive string `json:"hive"`
	LCD  string `json:"lcd"`
	RPC  string `json:"rpc"`
}

Endpoints denote the format for usable endpoints

type HealthCheckWorkItem

type HealthCheckWorkItem struct {
	Identifier string    `json:"identifier"`
	Endpoints  Endpoints `json:"endpoints"`
}

HealthCheckWorkItem defines the parameters for the collector to send to the health checker

type RoverHealthCheckWorkItem

type RoverHealthCheckWorkItem struct {
	Identifier string    `json:"identifier"`
	Endpoints  Endpoints `json:"endpoints"`
}

HealthCheckWorkItem defines the parameters for the collector to send to the health checker

type WorkItem

type WorkItem struct {
	HiveEndpoint       string       `json:"hive_endpoint"`
	RPCEndpoint        string       `json:"rpc_endpoint"`
	LCDEndpoint        string       `json:"lcd_endpoint"`
	ContractAddress    string       `json:"contract_address"`
	ContractItemPrefix string       `json:"contract_item_prefix"`
	WorkItemType       WorkItemType `json:"work_item_type"`
	ContractPageOffset uint64       `json:"contract_page_offset"`
	ContractPageLimit  uint64       `json:"contract_page_limit"`
}

WorkItem defines the parameters for the collector to use when querying the contract state

type WorkItemType

type WorkItemType string
const (
	Redbank WorkItemType = "Redbank"
	Rover   WorkItemType = "Rover"
)

Jump to

Keyboard shortcuts

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