MCPcopy
hub / github.com/segmentio/kafka-go / getTopics

Method getTopics

reader.go:99–105  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

97func (r *Reader) useConsumerGroup() bool { return r.config.GroupID != "" }
98
99func (r *Reader) getTopics() []string {
100 if len(r.config.GroupTopics) > 0 {
101 return r.config.GroupTopics[:]
102 }
103
104 return []string{r.config.Topic}
105}
106
107// useSyncCommits indicates whether the Reader is configured to perform sync or
108// async commits.

Callers 1

NewReaderFunction · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected