sysboard

package
v0.0.114 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Apr 19, 2023 License: GPL-3.0 Imports: 23 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	StartEnabled *atomic.Bool `json:"enabled"`
	BoardDelay   string       `json:"boardDelay"`
	OnTimes      []string     `json:"onTimes"`
	OffTimes     []string     `json:"offTimes"`
	// contains filtered or unexported fields
}

Config ...

func (*Config) SetDefaults

func (c *Config) SetDefaults()

SetDefaults ...

type Server

type Server struct {
	// contains filtered or unexported fields
}

Server ...

func (*Server) GetStatus

func (s *Server) GetStatus(ctx context.Context, req *emptypb.Empty) (*pb.StatusResp, error)

GetStatus ...

func (*Server) SetStatus

func (s *Server) SetStatus(ctx context.Context, req *pb.SetStatusReq) (*emptypb.Empty, error)

SetStatus ...

type SysBoard

type SysBoard struct {
	sync.Mutex
	// contains filtered or unexported fields
}

SysBoard implements board.Board. Provides System info

func New

func New(logger *zap.Logger, config *Config) (*SysBoard, error)

New ...

func (*SysBoard) Enabler

func (s *SysBoard) Enabler() board.Enabler

func (*SysBoard) GetHTTPHandlers

func (s *SysBoard) GetHTTPHandlers() ([]*board.HTTPHandler, error)

GetHTTPHandlers ...

func (*SysBoard) GetRPCHandler

func (s *SysBoard) GetRPCHandler() (string, http.Handler)

GetRPCHandler ...

func (*SysBoard) InBetween

func (s *SysBoard) InBetween() bool

InBetween ...

func (*SysBoard) Name

func (s *SysBoard) Name() string

Name ...

func (*SysBoard) Render

func (s *SysBoard) Render(ctx context.Context, canvas board.Canvas) error

Render ...

func (*SysBoard) ScrollMode

func (s *SysBoard) ScrollMode() bool

ScrollMode ...

func (*SysBoard) ScrollRender

func (s *SysBoard) ScrollRender(ctx context.Context, canvas board.Canvas, padding int) (board.Canvas, error)

ScrollRender ...

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL