Documentation
¶
Index ¶
- type API
- type Config
- type Price
- type Server
- type Stock
- type StockBoard
- func (s *StockBoard) Enabler() board.Enabler
- 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
- func (s *StockBoard) ScrollRender(ctx context.Context, canvas board.Canvas, padding int) (board.Canvas, error)
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 { StartEnabled *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 ¶
type Server struct {
// contains filtered or unexported fields
}
Server ...
type StockBoard ¶
StockBoard displays stocks
func (*StockBoard) Enabler ¶
func (s *StockBoard) Enabler() board.Enabler
func (*StockBoard) GetHTTPHandlers ¶
func (s *StockBoard) GetHTTPHandlers() ([]*board.HTTPHandler, error)
GetHTTPHandlers ...
func (*StockBoard) GetRPCHandler ¶
func (s *StockBoard) GetRPCHandler() (string, http.Handler)
GetRPCHandler ...
Click to show internal directories.
Click to hide internal directories.