kafkabus

package
v0.0.0-...-690d12d Latest Latest
Warning

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

Go to latest
Published: Apr 24, 2017 License: MIT Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Url      string
	Attempts int
	Timeout  time.Duration
}

type Emitter

type Emitter interface {
	Emit() chan *Message
	Close()
}

func NewEmitter

func NewEmitter(c Config) (emitter Emitter, err error)

type Listener

type Listener interface {
	On(topic string, partition int32, fn fnHandler) error
	Close()
}

func NewListener

func NewListener(c Config) (listener Listener, err error)

type Message

type Message struct {
	Topic     string
	Payload   interface{}
	Partition int32
}

Jump to

Keyboard shortcuts

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