Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Config ¶
type Config struct { LogHistory int LogLines int PreludeHeadLines int PreludeTailLines int Logger log.Logger Collector session.Collector }
Config is the config for the Parser implementation
type Duration ¶
Duration represents a time.Duration
func (Duration) MarshalJSON ¶
MarshalJSON marshals a time.Duration to JSON
func (*Duration) UnmarshalJSON ¶
UnmarshalJSON unmarshals a JSON value to time.Duration. The JSON value can be either a float which is interpreted as seconds or a string that is interpreted as a formatted duration.
type Parser ¶
type Parser interface { process.Parser // Progress returns the current progress information of the process Progress() app.Progress // Prelude returns an array of the lines before the progress information started Prelude() []string // Report returns the current logs Report() Report // ReportHistory returns an array of previews logs ReportHistory() []Report // TransferReportHistory transfers the report history to another parser TransferReportHistory(Parser) error }
Parser is an extension to the process.Parser interface
Click to show internal directories.
Click to hide internal directories.