Documentation ¶
Index ¶
- type Config
- type EmbedDir
- type Server
- 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) 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) Status(ctx context.Context, req *emptypb.Empty) (*pb.ScreenStatusResp, error)
- func (s *Server) Version(ctx context.Context, req *emptypb.Empty) (*pb.VersionResp, error)
- type SportsMatrix
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"` }
Config ...
type EmbedDir ¶ added in v0.0.7
type EmbedDir struct {
http.FileSystem
}
EmbedDir is a wrapper to return index.html by default
type Server ¶ added in v0.0.63
type Server struct {
// contains filtered or unexported fields
}
Server ...
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) JumpTo ¶ added in v0.0.59
func (s *SportsMatrix) JumpTo(boardName string) error
JumpTo jumps to a board with a given name
Click to show internal directories.
Click to hide internal directories.