common

package
v0.0.0-...-c447edc Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2024 License: MIT Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var GlobalSiteDescription = "Ethereum Analytics. Various network statistics for the last 24 hours."
View Source
var GlobalSiteName = "Ethereum Analytics - U00"

Functions

This section is empty.

Types

type Page

type Page struct {
	Code        string
	Name        string
	Description string
	Symbol      string
	Ticket      string
	Fn          func(page *Page, result *PageRunResult)
}

type PageRunResult

type PageRunResult struct {
	Page        *Page
	Code        string
	Name        string
	Description string
	Content     string
}

type Result

type Result struct {
	Code            string
	Type            string
	Count           int
	CurrentDateTime string

	Parameters []*ResultParameter
	TimeChart  ResultTimeChart
	Table      ResultTable
}

type ResultParameter

type ResultParameter struct {
	Text  string
	Value string
}

type ResultTable

type ResultTable struct {
	Name    string
	Columns []*ResultTableColumn
	Items   []*ResultTableItem
}

type ResultTableColumn

type ResultTableColumn struct {
	Name  string
	Align string
}

type ResultTableItem

type ResultTableItem struct {
	Values []string
}

type ResultTimeChart

type ResultTimeChart struct {
	VAxisName string
	HAxisName string
	Items     []*ResultTimeChartItem
	Tables    []*ResultTable
}

type ResultTimeChartItem

type ResultTimeChartItem struct {
	Index int
	DT    uint64
	DTStr string
	Value float64
}

type Task

type Task struct {
	Code  string
	Type  string
	Fn    func(task *Task, result *Result, txsByMin *db.TxsByMinutes, txs []*db.Tx)
	State TaskState

	Name         string
	Description  string
	Text         string
	Ticker       string
	Symbol       string
	ViewProvider ViewProvider
}

type TaskState

type TaskState struct {
	Code                   string
	LastExecTime           string
	LastExecTimeDurationMs int
}

type ViewProvider

type ViewProvider interface {
	GetResult(code string) *Result
}

Jump to

Keyboard shortcuts

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