kafka

package
v0.0.0-...-84ea768 Latest Latest
Warning

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

Go to latest
Published: Jun 16, 2021 License: MIT Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var OpenSubscription = func(ctx context.Context, topic string) (interface{}, error) {
	subscriptionGroupsSync.Lock()
	defer subscriptionGroupsSync.Unlock()
	groupID := subscriptionGroups[topic]
	subscriptionGroups[topic] = groupID + 1

	uri := fmt.Sprintf(subscribeURI, groupID, topic)
	return pubsub.OpenSubscription(ctx, uri)
}
View Source
var OpenTopic = func(ctx context.Context, topic string) (interface{}, error) {
	return pubsub.OpenTopic(ctx, openTopicURI+topic)
}

Functions

func Init

func Init(conf *config.SystemConfig)

Types

This section is empty.

Jump to

Keyboard shortcuts

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