Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func WaitForKafka ¶
func WaitForKafka(backoff *backoff.Backoff, addrs []string, conf *sarama.Config) sarama.ClusterAdmin
WaitForKafka - Attempts to connect to the provided addrs and create a sarama.ClusterAdmin
func WaitForTopics ¶
func WaitForTopics(backoff *backoff.Backoff, clusterAdmin sarama.ClusterAdmin, requiredTopics *TopicsList)
WaitForTopics - Uses the provided sarama.ClusterAdmin to list cluster topics and waits until the required *TopicsList has been satisfied
Types ¶
type TopicsList ¶
type TopicsList struct {
TopicsList []string `yaml:"topics"`
}
TopicsList - Wrapper Struct to allow parsing of topics yaml to a slice of strings
func LoadTopics ¶
func LoadTopics(path string) (*TopicsList, error)
LoadTopics - Attempts to read the yaml file at the provided path and unmarshal to a *TopicsList
func (*TopicsList) Topics ¶
func (t *TopicsList) Topics() []string
Topics - Returns string slice containing the TopicsList's topic names
Click to show internal directories.
Click to hide internal directories.