kafka

package
v0.0.0-...-d1c628d Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 23, 2019 License: MIT Imports: 10 Imported by: 0

Documentation

Overview

THIS IS AN EXPERIMENTAL DRIVER, PLEASE USE WITH CAUTION

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Provider

type Provider struct {
	Brokers  []string
	Balancer kafka.Balancer
	Reader   *kafka.Reader
	// contains filtered or unexported fields
}

Provider is a Kafka based pubsub provider

func (*Provider) Publish

func (p *Provider) Publish(ctx context.Context, topic string, m *pubsub.Msg) error

Publish publishes a message to Kafka with a uuid as the key

func (*Provider) Shutdown

func (p *Provider) Shutdown()

func (*Provider) Subscribe

func (p *Provider) Subscribe(opts pubsub.HandlerOptions, h pubsub.MsgHandler)

Subscribe implements Subscribe

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL