app

package
v1.0.2 Latest Latest
Warning

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

Go to latest
Published: Nov 18, 2024 License: MIT Imports: 17 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Run

func Run()

Types

type App

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

type Config

type Config struct {
	UpdateInterval int     `json:"update_interval"`
	AlertThreshold float64 `json:"alert_threshold"`
	APIKey         string  `json:"api_key"`
}

type MiniChart

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

MiniChart represents a custom chart component

func NewMiniChart

func NewMiniChart() *MiniChart

func (*MiniChart) Update

func (c *MiniChart) Update(prices []float64)

type PriceData

type PriceData struct {
	ThetanWorld struct {
		USD          float64 `json:"usd"`
		USD24hChange float64 `json:"usd_24h_change"`
	} `json:"thetan-arena"`
}

type PriceRecord

type PriceRecord struct {
	Price     float64   `json:"price"`
	Timestamp time.Time `json:"timestamp"`
}

Jump to

Keyboard shortcuts

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