Categorygithub.com/tommzn/hdb-renderer-core
modulepackage
1.1.6
Repository: https://github.com/tommzn/hdb-renderer-core.git
Documentation: pkg.go.dev

# README

Go Reference GitHub go.mod Go version GitHub release (latest by date) Go Report Card Actions Status

HomeDashboard Renderer Core Components

Contains core components and basic renderers for HomeDashboard UIs.

Links

# Functions

NewFileTemplate returns a new template for given file.
NewFileTemplateFromConfig will create a template for a file defined in passed config.
NewTimestampManager returns an empty timestamp manager.

# Structs

EventTimestampManager manages timestamp for latest events.
FileTemplate used to generate content based on file templates.
Point is used to define a position based on y/> coordinates.
Size a canvas uses in a template.
Spacing defines top, left right and bottom distance to other elements.

# Interfaces

DataSource is used to get data for templates.
Renderer generates content based on templates and event data.
Template renders content.
TimestampManager checks timestamp of events.