Documentation ¶
Index ¶
- type API
- type Config
- type OptionFunc
- type Server
- type TextBoard
- func (s *TextBoard) Enabler() board.Enabler
- func (s *TextBoard) GetHTTPHandlers() ([]*board.HTTPHandler, error)
- func (s *TextBoard) GetRPCHandler() (string, http.Handler)
- func (s *TextBoard) InBetween() bool
- func (s *TextBoard) Name() string
- func (s *TextBoard) Render(ctx context.Context, canvas board.Canvas) error
- func (s *TextBoard) ScrollMode() bool
- func (s *TextBoard) 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 { GetLogo(ctx context.Context) (image.Image, error) GetText(ctx context.Context) ([]string, error) HTTPPathPrefix() string }
API ...
type Config ¶
type Config struct { StartEnabled *atomic.Bool `json:"enabled"` BoardDelay string `json:"boardDelay"` UpdateInterval string `json:"updateInterval"` TightScrollPadding int `json:"tightScrollPadding"` ScrollDelay string `json:"scrollDelay"` OnTimes []string `json:"onTimes"` OffTimes []string `json:"offTimes"` UseLogos *atomic.Bool `json:"useLogos"` Max *int `json:"max"` // contains filtered or unexported fields }
Config for a TextBoard
type OptionFunc ¶
OptionFunc ...
func WithHalfSizeLogo ¶
func WithHalfSizeLogo() OptionFunc
WithHalfSizeLogo option to shrink headline logo by half
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server ...
type TextBoard ¶
TextBoard displays stocks
func (*TextBoard) GetHTTPHandlers ¶
func (s *TextBoard) GetHTTPHandlers() ([]*board.HTTPHandler, error)
GetHTTPHandlers ...
func (*TextBoard) GetRPCHandler ¶
GetRPCHandler ...
Click to show internal directories.
Click to hide internal directories.