jackdaw.test.transports.rest-proxy

build-record

(build-record m)

content-types

deliver-ack

(deliver-ack ack)
Deliver the `ack` promise with the result of attempting to write to kafka. The
default command-handler waits for this before on to the next command so the
test response may indicate the success/failure of each write command.

destroy-consumer

(destroy-consumer {:keys [base-uri]})

handle-proxy-request

(handle-proxy-request method url headers body)

ok?

proxy-client-info

(proxy-client-info client)

rest-proxy-client

(rest-proxy-client config)

rest-proxy-consumer

(rest-proxy-consumer config topic-metadata deserializers)
Creates an asynchronous Kafka Consumer of all topics defined in the
supplied `topic-metadata`

Puts all messages on the channel in the returned response. It is the
responsibility of the caller to arrange for the read the channel to
be read by some other process.

Must be closed with `close-consumer` when no longer required

rest-proxy-headers

(rest-proxy-headers accept)

rest-proxy-poller

(rest-proxy-poller messages)
Returns a function that takes a consumer and puts any messages retrieved
by polling it onto the supplied `messages` channel

rest-proxy-producer

(rest-proxy-producer config topics serializers)
Creates an asynchronous kafka producer to be used by a test-machine for for
injecting test messages

rest-proxy-subscription

(rest-proxy-subscription config topic-metadata)

topic-post

(topic-post {:keys [bootstrap-uri]} msg callback)

undatafy-record

(undatafy-record topic-metadata m)

uuid

(uuid)

with-consumer

(with-consumer {:keys [bootstrap-uri group-id], :as client})

with-subscription

(with-subscription {:keys [base-uri group-id instance-id], :as client} topic-metadata)