kafka

package
v0.8.0 Latest Latest
Warning

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

Go to latest
Published: Feb 14, 2018 License: BSD-3-Clause Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Encode

func Encode(rec Record) ([]byte, error)

Types

type Record

type Record struct {
	Key       []byte
	Value     []byte
	Timestamp time.Time
}

func Decode

func Decode(raw []byte) (Record, error)

type Source

type Source struct {
	KafkaHosts []string
	Topics     []string
	Group      string
	// contains filtered or unexported fields
}

func NewSource

func NewSource() *Source

func (*Source) Close

func (s *Source) Close() error

func (*Source) Open

func (s *Source) Open() error

func (*Source) Record

func (s *Source) Record() ([]byte, error)

Jump to

Keyboard shortcuts

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