sysboard

package
v0.0.80 Latest Latest
Warning

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

Go to latest
Published: Jan 26, 2022 License: GPL-3.0 Imports: 22 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 {
	Enabled    *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 added in v0.0.63

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

Server ...

func (*Server) GetStatus added in v0.0.63

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

GetStatus ...

func (*Server) SetStatus added in v0.0.63

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) Disable added in v0.0.8

func (s *SysBoard) Disable()

Disable ...

func (*SysBoard) Enable added in v0.0.8

func (s *SysBoard) Enable()

Enable ...

func (*SysBoard) Enabled

func (s *SysBoard) Enabled() bool

Enabled ...

func (*SysBoard) GetHTTPHandlers

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

GetHTTPHandlers ...

func (*SysBoard) GetRPCHandler added in v0.0.63

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

GetRPCHandler ...

func (*SysBoard) InBetween added in v0.0.74

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 added in v0.0.29

func (s *SysBoard) ScrollMode() bool

ScrollMode ...

Jump to

Keyboard shortcuts

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