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

Struct ReaderFactory

otkafka/factory.go:13–15  ·  view source on GitHub ↗

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.

Source from the content-addressed store, hash-verified

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.
13type ReaderFactory struct {
14 *di.Factory
15}
16
17// Make returns a *kafka.Reader under the provided configuration entry.
18func (k ReaderFactory) Make(name string) (*kafka.Reader, error) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected