Documentation ¶
Index ¶
- Constants
- func CSVDatabase(dbStream io.Reader, cdc CSVDatabaseConfig) error
- func CSVDatabaseResolved(dbStream io.Reader, cdc CSVDatabaseResolvedConfig) error
- func CSVLog(logStream io.Reader, c CSVLogConfig) error
- func Command() *cli.Command
- func NewCSVCommand(cu utils.CmdUtils) *cli.Command
- func NewCSVDatabaseCommand(cu utils.CmdUtils, csvDatabase CSVDatabaseCmd) *cli.Command
- func NewCSVDatabaseResolvedCommand(cu utils.CmdUtils, csvDatabaseResolved CSVDatabaseResolvedCmd) *cli.Command
- func NewCSVLogCommand(cu utils.CmdUtils, csvLog CSVLogCmd) *cli.Command
- type CSVConfig
- type CSVDatabaseCmd
- type CSVDatabaseConfig
- type CSVDatabaseReporter
- type CSVDatabaseResolvedCmd
- type CSVDatabaseResolvedConfig
- type CSVLogCmd
- type CSVLogConfig
- type CSVReporter
Constants ¶
View Source
const DefaultCSVSeparator = ','
View Source
const DefaultOutputTimeFormat = "2006-01-02"
Variables ¶
This section is empty.
Functions ¶
func CSVDatabase ¶
func CSVDatabase(dbStream io.Reader, cdc CSVDatabaseConfig) error
CSVDatabase generates CSV export of the database
func CSVDatabaseResolved ¶
func CSVDatabaseResolved(dbStream io.Reader, cdc CSVDatabaseResolvedConfig) error
CSVDatabaseResolved generates CSV export of the resolved database
func CSVLog ¶
func CSVLog(logStream io.Reader, c CSVLogConfig) error
CSVLog generates CSV export of the log
func NewCSVCommand ¶
func NewCSVDatabaseCommand ¶
func NewCSVDatabaseCommand(cu utils.CmdUtils, csvDatabase CSVDatabaseCmd) *cli.Command
func NewCSVDatabaseResolvedCommand ¶
func NewCSVDatabaseResolvedCommand(cu utils.CmdUtils, csvDatabaseResolved CSVDatabaseResolvedCmd) *cli.Command
func NewCSVLogCommand ¶
Types ¶
type CSVConfig ¶
type CSVConfig struct { reporter.CommonConfig CSVSeparator rune OutputTimeFormat string }
func NewCSVConfig ¶
func NewCSVConfig(c reporter.CommonConfig) CSVConfig
type CSVDatabaseCmd ¶
type CSVDatabaseCmd func(dbStream io.Reader, cdc CSVDatabaseConfig) error
type CSVDatabaseConfig ¶
type CSVDatabaseReporter ¶
type CSVDatabaseReporter struct {
// contains filtered or unexported fields
}
CSVReporter outputs report for single food
func NewCSVDatabaseReporter ¶
func NewCSVDatabaseReporter(config reporter.Config) CSVDatabaseReporter
NewCSVReporter creates new CSV reporter
func (CSVDatabaseReporter) Flush ¶
func (r CSVDatabaseReporter) Flush() error
Flush flushes the buffer
type CSVDatabaseResolvedCmd ¶
type CSVDatabaseResolvedCmd func(dbStream io.Reader, cdrc CSVDatabaseResolvedConfig) error
type CSVLogConfig ¶
type CSVReporter ¶
type CSVReporter struct {
// contains filtered or unexported fields
}
CSVReporter outputs report for single food
func NewCSVReporter ¶
func NewCSVReporter(config CSVConfig) CSVReporter
NewCSVReporter creates new CSV reporter
Click to show internal directories.
Click to hide internal directories.