MCPcopy Create free account
hub / github.com/DoNewsCode/core / WriterFactory

Struct WriterFactory

otkafka/factory.go:31–33  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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.
31type WriterFactory struct {
32 *di.Factory
33}
34
35// Make returns a *kafka.Writer under the provided configuration entry.
36func (k WriterFactory) Make(name string) (*kafka.Writer, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected