WriterFactory is a *di.Factory that creates *kafka.Writer. 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.
| 29 | // kafka reader/writer. It is suggested to use Topic name as the identifier of |
| 30 | // kafka config rather than an opaque name such as default. |
| 31 | type WriterFactory struct { |
| 32 | *di.Factory |
| 33 | } |
| 34 | |
| 35 | // Make returns a *kafka.Writer under the provided configuration entry. |
| 36 | func (k WriterFactory) Make(name string) (*kafka.Writer, error) { |
nothing calls this directly
no outgoing calls
no test coverage detected