← ZIO Kafka docs

Kafka

zio.kafka.testkit.Kafka
See theKafka companion trait
object Kafka

Attributes

Companion
trait
Source
Kafka.scala
Graph
Supertypes
class Object
trait Matchable
class Any
Self type
Kafka.type

Members list

Type members

Classlikes

case object DefaultLocal extends Kafka

Attributes

Source
Kafka.scala
Supertypes
trait Singleton
trait Product
trait Mirror
trait Serializable
trait Product
trait Equals
trait Kafka
class Object
trait Matchable
class Any
Show all
Self type
final case class EmbeddedKafkaService(embeddedK: EmbeddedK) extends Kafka

Attributes

Source
Kafka.scala
Supertypes
trait Serializable
trait Product
trait Equals
trait Kafka
class Object
trait Matchable
class Any
Show all
final case class Ports(kafkaPort: Int, controllerPort: Int)

Attributes

Source
Kafka.scala
Supertypes
trait Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all
final case class Sasl(value: Kafka) extends AnyVal

Attributes

Source
Kafka.scala
Supertypes
trait Serializable
trait Product
trait Equals
class AnyVal
trait Matchable
class Any
Show all

Value members

Concrete methods

def embeddedWith(customBrokerProps: Ports => Map[String, String]): ZLayer[Any, Throwable, Kafka]

Creates an in-memory Kafka instance with a random port.

Creates an in-memory Kafka instance with a random port.

Value parameters

customBrokerProps

add/update broker properties

Attributes

Source
Kafka.scala
def saslEmbeddedWith(customBrokerProps: Ports => Map[String, String]): ZLayer[Any, Throwable, Sasl]

Creates an in-memory Kafka instance with a random port and SASL authentication configured.

Creates an in-memory Kafka instance with a random port and SASL authentication configured.

Value parameters

customBrokerProps

add/update broker properties

Attributes

Source
Kafka.scala
def sslEmbeddedWith(customBrokerProps: Ports => Map[String, String]): ZLayer[Any, Throwable, Kafka]

Creates an in-memory Kafka instance with a random port and SSL authentication configured.

Creates an in-memory Kafka instance with a random port and SSL authentication configured.

⚠️ This does not create an actually working broker since authentication is not configured correctly. It is however sufficient to test the SSL check that zio-kafka does before connecting to a broker with plain-text settings.

Value parameters

customBrokerProps

add/update broker properties

Attributes

Source
Kafka.scala

Concrete fields

Creates an in-memory Kafka instance with a random port.

Creates an in-memory Kafka instance with a random port.

Attributes

Source
Kafka.scala

Will connect to a Kafka instance running on localhost:9092 (with Docker, for example).

Will connect to a Kafka instance running on localhost:9092 (with Docker, for example).

Attributes

Source
Kafka.scala

Creates an in-memory Kafka instance with a random port and SASL authentication configured.

Creates an in-memory Kafka instance with a random port and SASL authentication configured.

Attributes

Source
Kafka.scala

Creates an in-memory Kafka instance with a random port and SSL authentication configured.

Creates an in-memory Kafka instance with a random port and SSL authentication configured.

Attributes

Source
Kafka.scala