Documentation
¶
Index ¶
- type Option
- func CoreReports(core bool) Option
- func ForceIngest(fi bool) Option
- func InputFolder(path string) Option
- func ItemLevelReports(ilevel bool) Option
- func QAReports(qa bool) Option
- func Repository(repo *repository.BadgerRepo) Option
- func ShowProgress(sp bool) Option
- func SkipIngest(si bool) Option
- func Split(split bool) Option
- func StopAfterIngest(sai bool) Option
- func WritingExtractReports(wx bool) Option
- func XmlExtractReports(xml bool) Option
- type Transformer
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Option ¶
type Option func(*Transformer) error
func CoreReports ¶
indicate whether the most-used common reports will be included in this run of the transformer
func ForceIngest ¶
Even if an existing datastore has been created in the past, this option ensures that the old data is removed and the ingest cycle is run again reading all data files from the input folder. Default is true.
func InputFolder ¶
the folder contaning RRD xml data files for processing
func ItemLevelReports ¶
indicate whether the most heavyweight/detailed reports will be included in this run of the transformer, including these has the largest effect on overall processing time
func Repository ¶
func Repository(repo *repository.BadgerRepo) Option
the key-value store cotaining the ingested RRD data
func ShowProgress ¶
Show progress bars for report processing. (The progress bar for data ingest is always shown) Defaults to true. Reasons to disable are: to get clear visibility of any std.Out console messages so they don't mix with the console progress bars. Also if piping the output to a file the progress bars are witten out sequentially producing a lot of unnecessary noise data in the file.
func SkipIngest ¶
Tells NRT to go straight the the report processing activity, as data has already been ingested at an earlier point in time
func Split ¶ added in v1.0.5
indicate whether trimmer/splitter will be run on its own in this run of the transformer
func StopAfterIngest ¶
Make transformer stop once data ingest is complete various report configurations can then be run independently without reloading the results data Default is false, tranformer will ingest data and move directly to report processing
func WritingExtractReports ¶
indicate whether the writing-extract reports (input to downstream writing marking systems) will be included in this run of the transformer
func XmlExtractReports ¶ added in v1.0.0
indicate whether the XML reports (output of ingested files back as XML, with redaction) will be included in this run of the transformer
type Transformer ¶
type Transformer struct {
// contains filtered or unexported fields
}
the core nrt engine, passes the streams of rrd data through pipelines of report processors creating tabluar and fixed-width reports from the xml data
func NewTransformer ¶
func NewTransformer(userOpts ...Option) (*Transformer, error)
Directories
¶
| Path | Synopsis |
|---|---|
|
cmd
|
|
|
convert/cnv2file
command
|
|
|
convert/cnv2kvdb
command
|
|
|
nrt
command
|
|
|
processing of data withitn the context of the codeframe, e.g.
|
processing of data withitn the context of the codeframe, e.g. |