transport

package
v0.0.0-...-7c475f1 Latest Latest
Warning

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

Go to latest
Published: Feb 28, 2018 License: Apache-2.0 Imports: 1 Imported by: 4

Documentation

Overview

Package transport provides interfaces for sending and receiving messages.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Consumer

type Consumer interface {
	// Messages returns a channel which receives messages.
	Messages() <-chan message.Message
}

Consumer is an interface for receiving messages from a fixed, implementation-defined set of topics.

type Producer

type Producer interface {
	// Send sends a message to a topic.
	Send(topic string, message message.Message) error

	// Errors returns a channel which receives errors resulting asynchronously from sending messages.
	Errors() <-chan error
}

Producer is an interface for sending messages to arbitrary topics.

Directories

Path Synopsis
Package kafka provides an implementation of the transport interface for Apache Kafka.
Package kafka provides an implementation of the transport interface for Apache Kafka.
Code generated by mockery v1.0.0
Code generated by mockery v1.0.0

Jump to

Keyboard shortcuts

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