Documentation ¶
Index ¶
- Variables
- type Clock
- func (c *Clock) Cleanup()
- func (c *Clock) Enabler() board.Enabler
- 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)
- 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 ¶
GetRPCHandler ...
type Config ¶
type Config struct { StartEnabled *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"` Enable24Hour *atomic.Bool `json:"enable24Hour"` // contains filtered or unexported fields }
Config is a Clock configuration
Click to show internal directories.
Click to hide internal directories.