model

package
v0.0.0-...-07ad8dd Latest Latest
Warning

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

Go to latest
Published: May 5, 2018 License: BSD-2-Clause Imports: 1 Imported by: 12

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Broker

type Broker interface {
	Do(Request, Response) error
	Close()
}

type Cluster

type Cluster interface {
	Coordinator(group string) (Broker, error)
	CoordinatorIsDown(group string)
	Leader(topic string, partition int32) (Broker, error)
	LeaderIsDown(topic string, partition int32)
	Partitions(topic string) ([]int32, error)
}

type Request

type Request interface {
	Send(io.Writer) error
	ID() int32
	SetID(int32)
}

type Response

type Response interface {
	Receive(io.Reader) error
	ID() int32
}

Jump to

Keyboard shortcuts

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