gomq

package module
v0.0.0-...-8704038 Latest Latest
Warning

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

Go to latest
Published: Jan 1, 2018 License: MIT Imports: 0 Imported by: 4

README

gomq

golang mq adapter library, current version support kafka

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchMessage

type BatchMessage struct {
	Topic   string
	Key     []byte
	Content interface{}
}

BatchMessage .

type Consumer

type Consumer interface {
	Close()
	Messages() <-chan Message
	Errors() <-chan error
	Commit(message Message)
}

Consumer mq consumer client

type Message

type Message interface {
	Key() []byte
	Topic() string
	Value() []byte
	Offset() int64
}

Message MQ message

type Producer

type Producer interface {
	Produce(topic string, key []byte, content interface{}) error
	Batch(messages []*BatchMessage) error
}

Producer mq producer client

Jump to

Keyboard shortcuts

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