Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DataSource ¶
type DataSource interface { // Latest willreturn latest element for given datasource. Latest(core.DataSource) (proto.Message, error) }
DataSource is used to get data for templates.
type FileTemplate ¶
type FileTemplate struct {
// contains filtered or unexported fields
}
FileTemplate used to generate content based on file templates.
func (*FileTemplate) RenderWith ¶
func (fileTemplate *FileTemplate) RenderWith(data interface{}) (string, error)
type Point ¶
type Point struct {
X, Y int64
}
Point is used to define a position based on y/> coordinates.
type Renderer ¶ added in v1.0.1
type Renderer interface { // Size returns height and width a rendered element uses. Size() Size // Content returns rendered elements. Content() (string, error) }
Renderer generates content based on templates and event data.
Click to show internal directories.
Click to hide internal directories.