mirror of
https://github.com/matrix-org/dendrite.git
synced 2025-12-06 22:43:10 -06:00
Restore comments
This commit is contained in:
parent
349b991178
commit
5c1be7c043
|
|
@ -25,8 +25,14 @@ type PartitionStorer interface {
|
||||||
// A ContinualConsumer continually consumes logs even across restarts. It requires a PartitionStorer to
|
// A ContinualConsumer continually consumes logs even across restarts. It requires a PartitionStorer to
|
||||||
// remember the offset it reached.
|
// remember the offset it reached.
|
||||||
type ContinualConsumer struct {
|
type ContinualConsumer struct {
|
||||||
Topic string
|
// The kafkaesque topic to consume events from.
|
||||||
Consumer sarama.Consumer
|
// This is the name used in kafka to identify the stream to consume events from.
|
||||||
|
Topic string
|
||||||
|
// A kafkaesque stream consumer providing the APIs for talking to the event source.
|
||||||
|
// The interface is taken from a client library for Apache Kafka.
|
||||||
|
// But any equivalent event streaming protocol could be made to implement the same interface.
|
||||||
|
Consumer sarama.Consumer
|
||||||
|
// A thing which can load and save partition offsets for a topic.
|
||||||
PartitionStore PartitionStorer
|
PartitionStore PartitionStorer
|
||||||
// ProcessMessage is a function which will be called for each message in the log. Return an error to
|
// ProcessMessage is a function which will be called for each message in the log. Return an error to
|
||||||
// stop processing messages. See ErrShutdown for specific control signals.
|
// stop processing messages. See ErrShutdown for specific control signals.
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue