Documentation ¶
Index ¶
- type API
- type Config
- type Event
- type RacingBoard
- func (s *RacingBoard) Disable() bool
- func (s *RacingBoard) Enable() bool
- func (s *RacingBoard) Enabled() bool
- func (s *RacingBoard) GetHTTPHandlers() ([]*board.HTTPHandler, error)
- func (s *RacingBoard) GetRPCHandler() (string, http.Handler)
- func (s *RacingBoard) HasPriority() bool
- func (s *RacingBoard) InBetween() bool
- func (s *RacingBoard) Name() string
- func (s *RacingBoard) Render(ctx context.Context, canvas board.Canvas) error
- func (s *RacingBoard) ScrollMode() bool
- func (s *RacingBoard) ScrollRender(ctx context.Context, canvas board.Canvas, padding int) (board.Canvas, error)
- func (s *RacingBoard) SetStateChangeNotifier(st board.StateChangeNotifier)
- type Server
- type Todayer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type API ¶
type API interface { LeagueShortName() string GetLogo(ctx context.Context, bounds image.Rectangle) (*logo.Logo, error) GetScheduledEvents(ctx context.Context) ([]*Event, error) HTTPPathPrefix() string }
API ...
type Config ¶
type Config struct { TodayFunc Todayer Enabled *atomic.Bool `json:"enabled"` BoardDelay string `json:"boardDelay"` ScrollMode *atomic.Bool `json:"scrollMode"` ScrollDelay string `json:"scrollDelay"` OnTimes []string `json:"onTimes"` OffTimes []string `json:"offTimes"` TightScrollPadding int `json:"tightScrollPadding"` // contains filtered or unexported fields }
Config ...
type RacingBoard ¶
type RacingBoard struct {
// contains filtered or unexported fields
}
RacingBoard implements board.Board
func (*RacingBoard) GetHTTPHandlers ¶
func (s *RacingBoard) GetHTTPHandlers() ([]*board.HTTPHandler, error)
GetHTTPHandlers ...
func (*RacingBoard) GetRPCHandler ¶
func (s *RacingBoard) GetRPCHandler() (string, http.Handler)
GetRPCHandler ...
func (*RacingBoard) ScrollRender ¶ added in v0.0.83
func (s *RacingBoard) ScrollRender(ctx context.Context, canvas board.Canvas, padding int) (board.Canvas, error)
ScrollRender ...
func (*RacingBoard) SetStateChangeNotifier ¶ added in v0.0.83
func (s *RacingBoard) SetStateChangeNotifier(st board.StateChangeNotifier)
SetStateChangeNotifier ...
Click to show internal directories.
Click to hide internal directories.