Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type T ¶
type T struct { // A unix domain socket address that the service should listen at. UnixAddr string // A TCP address that the service should listen at. TCPAddr string // A unique id that identifies this particular Kafka-Pixy instance in both // Kafka and ZooKeeper. ClientID string Kafka struct { // A list of seed Kafka peers in the form "<host>:<port>" that the // service will try to connect to to resolve the cluster topology. SeedPeers []string } ZooKeeper struct { // A list of seed ZooKeeper peers in the form "<host>:<port>" that the // service will try to connect to to resolve the cluster topology. SeedPeers []string // The root directory where Kafka keeps all its znodes. Chroot string } Producer struct { // The period of time that a proxy should allow to `sarama.Producer` to // submit buffered messages to Kafka. It should be large enough to avoid // event loss when shutdown is performed during Kafka leader election. ShutdownTimeout time.Duration // DeadMessageCh is a channel to dump undelivered messages into. It is // used in testing only. DeadMessageCh chan<- *sarama.ProducerMessage } Consumer struct { // A consume request will wait at most this long until a message from // the specified group/topic becomes available. This timeout is // necessary to account for consumer rebalancing that happens whenever // a new consumer joins a group or subscribes to a topic. LongPollingTimeout time.Duration // The period of time that a proxy should keep registration with a // consumer group or subscription for a topic in the absence of requests // to the aforementioned consumer group or topic. RegistrationTimeout time.Duration // If a request to a KafkaBroker fails for any reason then the proxy // should wait this long before retrying. BackOffTimeout time.Duration // A consumer should wait this long after it gets notification that a // consumer joined/left its consumer group before it should rebalance. RebalanceDelay time.Duration } // All buffered channels created by the service will have this size. ChannelBufferSize int }
func (*T) KazooConfig ¶
func (c *T) KazooConfig() *kazoo.Config
KazooConfig generates a `wvanbergen/kazoo-go` library config.
func (*T) SaramaConfig ¶
SaramaConfig generates a `Shopify/sarama` library config.
Click to show internal directories.
Click to hide internal directories.