clock

package
v0.0.8 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2021 License: GPL-3.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Clock

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

Clock implements board.Board

func New

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

New returns a new Clock board

func (*Clock) Cleanup

func (c *Clock) Cleanup()

Cleanup ...

func (*Clock) Disable added in v0.0.8

func (c *Clock) Disable()

Disable ...

func (*Clock) Enable added in v0.0.8

func (c *Clock) Enable()

Enable ...

func (*Clock) Enabled

func (c *Clock) Enabled() bool

Enabled ...

func (*Clock) GetHTTPHandlers

func (c *Clock) GetHTTPHandlers() ([]*board.HTTPHandler, error)

GetHTTPHandlers ...

func (*Clock) HasPriority

func (c *Clock) HasPriority() bool

HasPriority ...

func (*Clock) Name

func (c *Clock) Name() string

Name ...

func (*Clock) Render

func (c *Clock) Render(ctx context.Context, canvas board.Canvas) error

Render ...

type Config

type Config struct {
	Enabled    *atomic.Bool `json:"enabled"`
	BoardDelay string       `json:"boardDelay"`
	// contains filtered or unexported fields
}

Config is a Clock configuration

func (*Config) SetDefaults

func (c *Config) SetDefaults()

SetDefaults ...

Jump to

Keyboard shortcuts

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