kafkatest

package
v0.0.0-...-298395c Latest Latest
Warning

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

Go to latest
Published: Oct 25, 2019 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Message

type Message struct {
	Topic     string
	Partition int32
	Offset    int64
	Key       string
	Message   string
	Time      time.Time
}

type Server

type Server struct {
	Addr net.Addr
	// contains filtered or unexported fields
}

Provides an incomplete Kafka Server implementation. Records messages sent via the ProduceRequest and responds to MetadataRequests as the only broker.

func NewServer

func NewServer() (*Server, error)

func (*Server) Close

func (s *Server) Close()

func (*Server) Messages

func (s *Server) Messages() ([]Message, error)

Jump to

Keyboard shortcuts

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