Documentation ¶
Index ¶
- type Config
- type EmbedDir
- type Server
- func (s *Server) GetStatus(ctx context.Context, req *emptypb.Empty) (*pb.Status, error)
- func (s *Server) Jump(ctx context.Context, req *pb.JumpReq) (*emptypb.Empty, error)
- func (s *Server) NextBoard(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
- func (s *Server) RestartService(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
- func (s *Server) ScreenOff(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
- func (s *Server) ScreenOn(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
- func (s *Server) SetAll(ctx context.Context, req *pb.SetAllReq) (*emptypb.Empty, error)
- func (s *Server) SetLiveOnly(ctx context.Context, req *pb.LiveOnlyReq) (*emptypb.Empty, error)
- func (s *Server) SetStatus(ctx context.Context, req *pb.Status) (*emptypb.Empty, error)
- func (s *Server) SlowDown(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
- func (s *Server) SpeedUp(ctx context.Context, req *emptypb.Empty) (*emptypb.Empty, error)
- func (s *Server) Version(ctx context.Context, req *emptypb.Empty) (*pb.VersionResp, error)
- type SportsMatrix
- func (s *SportsMatrix) AddBetweenBoard(board board.Board)
- func (s *SportsMatrix) Close()
- func (s *SportsMatrix) JumpTo(ctx context.Context, boardName string) error
- func (s *SportsMatrix) ScreenOff(ctx context.Context) error
- func (s *SportsMatrix) ScreenOn(ctx context.Context) error
- func (s *SportsMatrix) Serve(ctx context.Context) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { ServeWebUI bool `json:"serveWebUI"` HTTPListenPort int `json:"httpListenPort"` HardwareConfig *rgb.HardwareConfig `json:"hardwareConfig"` RuntimeOptions *rgb.RuntimeOptions `json:"runtimeOptions"` ScreenOffTimes []string `json:"screenOffTimes"` ScreenOnTimes []string `json:"screenOnTimes"` WebBoardWidth int `json:"webBoardWidth"` WebBoardHeight int `json:"webBoardHeight"` LaunchWebBoard bool `json:"launchWebBoard"` WebBoardUser string `json:"webBoardUser"` CombinedScroll *atomic.Bool `json:"combinedScroll"` CombinedScrollDelay string `json:"combinedScrollDelay"` CombinedScrollPadding int `json:"combinedScrollPadding"` PreloadThreads int `json:"preloadThreads"` // contains filtered or unexported fields }
Config ...
type EmbedDir ¶
type EmbedDir struct {
http.FileSystem
}
EmbedDir is a wrapper to return index.html by default
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server ...
func (*Server) RestartService ¶
RestartService restarts the sportsmatrix service
func (*Server) SetLiveOnly ¶
SetLiveOnly sets the LiveOnly setting for SportBoards
type SportsMatrix ¶
SportsMatrix controls the RGB matrix. It rotates through a list of given board.Board
func New ¶
func New(ctx context.Context, logger *zap.Logger, cfg *Config, canvases []board.Canvas, boards ...board.Board) (*SportsMatrix, error)
New ...
func (*SportsMatrix) AddBetweenBoard ¶
func (s *SportsMatrix) AddBetweenBoard(board board.Board)
AddBetweenBoard adds a board to be run between each enabled board
func (*SportsMatrix) JumpTo ¶
func (s *SportsMatrix) JumpTo(ctx context.Context, boardName string) error
JumpTo jumps to a board with a given name
func (*SportsMatrix) ScreenOff ¶
func (s *SportsMatrix) ScreenOff(ctx context.Context) error
ScreenOff turns the matrix off
Click to show internal directories.
Click to hide internal directories.