Documentation ¶
Index ¶
- type API
- type Config
- type Price
- type Stock
- type StockBoard
- func (s *StockBoard) Disable()
- func (s *StockBoard) Enable()
- func (s *StockBoard) Enabled() bool
- func (s *StockBoard) GetHTTPHandlers() ([]*board.HTTPHandler, error)
- func (s *StockBoard) Name() string
- func (s *StockBoard) Render(ctx context.Context, canvas board.Canvas) error
- func (s *StockBoard) ScrollMode() bool
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { Get(ctx context.Context, symbols []string, interval time.Duration) ([]*Stock, error) CacheClear() }
API interface for getting stock data
type Config ¶
type Config struct { Enabled *atomic.Bool `json:"enabled"` Symbols []string `json:"symbols"` ChartResolution int `json:"chartResolution"` BoardDelay string `json:"boardDelay"` UpdateInterval string `json:"updateInterval"` ScrollMode *atomic.Bool `json:"scrollMode"` TightScrollPadding int `json:"tightScrollPadding"` ScrollDelay string `json:"scrollDelay"` // contains filtered or unexported fields }
Config for a StockBoard
type StockBoard ¶
StockBoard displays stocks
func (*StockBoard) GetHTTPHandlers ¶
func (s *StockBoard) GetHTTPHandlers() ([]*board.HTTPHandler, error)
GetHTTPHandlers ...
Click to show internal directories.
Click to hide internal directories.