View definition

(*MockBroker).SetHandlerByMap

Defined in github.com/Shopify/sarama/mockbroker.go

Description

SetHandlerByMap defines mapping of Request types to MockResponses. When a request is received by the broker, it looks up the request type in the map and uses the found MockResponse instance to generate an appropriate reply. If the request type is not found in the map then nothing is sent.

SetHandlerByMap is referenced in 2 repositories

github.com/Shopify/sarama github.com/vrischmann/koff