Documentation ¶
Index ¶
- Variables
- type Clock
- func (c *Clock) Cleanup()
- func (c *Clock) Disable() bool
- func (c *Clock) Enable() bool
- func (c *Clock) Enabled() bool
- func (c *Clock) GetHTTPHandlers() ([]*board.HTTPHandler, error)
- func (c *Clock) GetRPCHandler() (string, http.Handler)
- func (c *Clock) HasPriority() bool
- func (c *Clock) InBetween() bool
- func (c *Clock) Name() string
- func (c *Clock) Render(ctx context.Context, canvas board.Canvas) error
- func (c *Clock) ScrollMode() bool
- func (c *Clock) ScrollRender(ctx context.Context, canvas board.Canvas, padding int) (board.Canvas, error)
- func (c *Clock) SetStateChangeNotifier(st board.StateChangeNotifier)
- type Config
- type Server
Constants ¶
This section is empty.
Variables ¶
View Source
var Name = "Clock"
Name is the default board name for this Clock
Functions ¶
This section is empty.
Types ¶
type Clock ¶
Clock implements board.Board
func (*Clock) GetHTTPHandlers ¶
func (c *Clock) GetHTTPHandlers() ([]*board.HTTPHandler, error)
GetHTTPHandlers ...
func (*Clock) GetRPCHandler ¶ added in v0.0.63
GetRPCHandler ...
func (*Clock) ScrollRender ¶ added in v0.0.83
func (c *Clock) ScrollRender(ctx context.Context, canvas board.Canvas, padding int) (board.Canvas, error)
ScrollRender ...
func (*Clock) SetStateChangeNotifier ¶ added in v0.0.83
func (c *Clock) SetStateChangeNotifier(st board.StateChangeNotifier)
SetStateChangeNotifier ...
type Config ¶
type Config struct { Enabled *atomic.Bool `json:"enabled"` BoardDelay string `json:"boardDelay"` OnTimes []string `json:"onTimes"` OffTimes []string `json:"offTimes"` ShowBetween *atomic.Bool `json:"showBetween"` ScrollMode *atomic.Bool `json:"scrollMode"` ScrollDelay string `json:"scrollDelay"` // contains filtered or unexported fields }
Config is a Clock configuration
Click to show internal directories.
Click to hide internal directories.