eventing

package
v0.0.0-...-f203104 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 5, 2019 License: MIT Imports: 6 Imported by: 0

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL
⌂ 换网址