Kafka

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

Attributes

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

Members list

Type members

Classlikes

case object DefaultLocal extends Kafka

Attributes

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

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

Attributes

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

Attributes

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

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

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

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

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

Value parameters

customBrokerProps

add/update broker properties

Attributes

Concrete fields

val embedded: ZLayer[Any, Throwable, Kafka]

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

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

Attributes

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

val saslEmbedded: 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.

Attributes

val sslEmbedded: 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.

Attributes