Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type OnDataStream ¶
OnDataStream is a function that gets called when new data should be streamed to the client. The data has the generic type map[string]interface{}.
type TemplateReader ¶
type TemplateReader interface { ValuesFromTarget() (map[string]interface{}, error) RegisterQuery(query *TemplateReaderQuery) error Read() (map[string]interface{}, error) ReadStream( on OnDataStream, stopCh <-chan struct{}, ) error }
TemplateReader retrieves data from a target data source, registers a set of queries against that data, and returns it via the Read() operation
type TemplateReaderQuery ¶
Click to show internal directories.
Click to hide internal directories.