Documentation ¶
Index ¶
- type API
- type Config
- type Price
- type Server
- 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) GetRPCHandler() (string, http.Handler)
- func (s *StockBoard) InBetween() bool
- 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) TradingOpen() (time.Time, error) TradingClose() (time.Time, 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"` OnTimes []string `json:"onTimes"` OffTimes []string `json:"offTimes"` UseLogos *atomic.Bool `json:"useLogos"` MaxChartWidthRatio float64 `json:"maxChartWidthRatio"` // contains filtered or unexported fields }
Config for a StockBoard
type Server ¶ added in v0.0.63
type Server struct {
// contains filtered or unexported fields
}
Server ...
type StockBoard ¶
StockBoard displays stocks
func (*StockBoard) GetHTTPHandlers ¶
func (s *StockBoard) GetHTTPHandlers() ([]*board.HTTPHandler, error)
GetHTTPHandlers ...
func (*StockBoard) GetRPCHandler ¶ added in v0.0.63
func (s *StockBoard) GetRPCHandler() (string, http.Handler)
GetRPCHandler ...
Click to show internal directories.
Click to hide internal directories.