Documentation ¶
Index ¶
- Constants
- type Config
- type Consumer
- type Kafka
- type Producer
- type Service
- func (s *Service) Consumer() sarama.ConsumerGroup
- func (s *Service) JoinTopic(topic string) (string, error)
- func (s *Service) LeaveTopic(topic string) error
- func (s *Service) Produce(msg []byte) error
- func (s *Service) ProduceToTopic(ctx context.Context, topic string, data []byte) error
- func (s *Service) Producer() sarama.SyncProducer
- func (s *Service) Start()
- func (s *Service) Stop() error
- func (s *Service) SubscribeToTopic(topic string) (string, error)
- type StreamProvider
- type TopicProvider
Constants ¶
View Source
const ( GossipOriginalBlock = "original_block" OriginalBlockTopicFormat = GossipOriginalBlock )
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Consumer ¶
type Consumer interface {
Consumer() sarama.ConsumerGroup
}
type Kafka ¶
type Kafka interface { StreamProvider TopicProvider Producer Consumer }
type Producer ¶
type Producer interface {
Producer() sarama.SyncProducer
}
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) Consumer ¶
func (s *Service) Consumer() sarama.ConsumerGroup
func (*Service) LeaveTopic ¶
func (*Service) ProduceToTopic ¶
func (*Service) Producer ¶
func (s *Service) Producer() sarama.SyncProducer
type StreamProvider ¶
Click to show internal directories.
Click to hide internal directories.