wrapper

package
v0.0.0-...-6c2ec40 Latest Latest
Warning

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

Go to latest
Published: Nov 17, 2020 License: Apache-2.0 Imports: 3 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func Read

func Read(ctx context.Context, topic, broker, group string,
	msgchan chan kafka.Message, errorchan chan error)

Types

type PS

type PS struct {
	Topic    string
	Broker   string
	NumParts int
	// contains filtered or unexported fields
}

func Create

func Create(topic, broker string, numparts int) (*PS, error)

func (*PS) Delete

func (ps *PS) Delete() error

func (*PS) Write

func (ps *PS) Write(ctx context.Context, s Sender) (chan *kafka.Message, chan string, error)

type Sender

type Sender interface {
	Send(chan []byte)
}

Jump to

Keyboard shortcuts

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