Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // ErrBrokerAlreadyStarted is returned when a broker is started more than once. ErrBrokerAlreadyStarted = errors.New("broker already started") // ErrBrokerWasNotStarted is returned when a broker is stopped before it is started. ErrBrokerWasNotStarted = errors.New("broker was not started") // ErrBrokerNotConnected is returned when a broker is not connected. ErrBrokerNotConnected = errors.New("broker not connected") )
Functions ¶
This section is empty.
Types ¶
type Cluster ¶
type Cluster struct { Brokers int // For specifying the number of brokers to start. Topics []string // For specifying the topics to create. HealthProbe bool // For specifying whether to health-probe the brokers after creation. Kraft bool // For specifying whether to use the Kafka Raft protocol. // contains filtered or unexported fields }
Cluster represents a Kafka cluster.
func (*Cluster) BrokerAddresses ¶
BrokerAddresses returns the addresses of the brokers in the cluster.
Click to show internal directories.
Click to hide internal directories.