ReaderFactory is a *di.Factory that creates *kafka.Reader. Unlike other database providers, the kafka factories don't bundle a default kafka reader/writer. It is suggested to use Topic name as the identifier of kafka config rather than an opaque name such as default.
| 11 | // kafka reader/writer. It is suggested to use Topic name as the identifier of |
| 12 | // kafka config rather than an opaque name such as default. |
| 13 | type ReaderFactory struct { |
| 14 | *di.Factory |
| 15 | } |
| 16 | |
| 17 | // Make returns a *kafka.Reader under the provided configuration entry. |
| 18 | func (k ReaderFactory) Make(name string) (*kafka.Reader, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected