Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Cfg ¶
type Cfg struct { Log logger.Logger `validate:"nonnil"` Reader io.Reader `validate:"nonnil"` Bus eventutil.Bus `validate:"nonnil"` DataRead model.EventAction `validate:"nonzero"` }
Cfg defines config for Reader.
type Reader ¶
type Reader struct {
// contains filtered or unexported fields
}
Reader reads the data line-by-line basis from provided io.Reader, and publishes this data to provided topic on bus. Use #NewReader to create new instance.
Click to show internal directories.
Click to hide internal directories.