home

package
v0.0.3 Latest Latest
Warning

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

Go to latest
Published: Nov 1, 2022 License: GPL-3.0 Imports: 7 Imported by: 0

Documentation

Index

Constants

View Source
const (
	NameHomeTable = "t-home-table"
)

Variables

This section is empty.

Functions

func FindSignalTable

func FindSignalTable(t *html.Tokenizer) error

func Parse added in v0.0.2

func Parse(reader io.Reader, h *Home) (err error)

Types

type Home

type Home struct {
	Signals SignalTable
}

type HomeClient added in v0.0.2

type HomeClient struct {
	*client.Http[Home]
}

func NewClient added in v0.0.2

func NewClient(cacheDuration time.Duration) *HomeClient

func (*HomeClient) Home added in v0.0.2

func (c *HomeClient) Home() (h *Home, err error)

type InsiderTable

type InsiderTable struct {
}

type Signal

type Signal struct {
	Ticker string
	Last   float64
	Change float64
	Volume uint32
	Signal string
}

func ParseSignal

func ParseSignal(t *html.Tokenizer) (s *Signal)

type SignalTable

type SignalTable struct {
	Items []Signal
}

func ParseSignalTable

func ParseSignalTable(t *html.Tokenizer) (s *SignalTable)

type TableParser

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

func NewTableParser

func NewTableParser(cols []string) *TableParser

func (*TableParser) Parse

func (p *TableParser) Parse(t *html.Tokenizer) error

Jump to

Keyboard shortcuts

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