wpc

package module
v2.0.1 Latest Latest
Warning

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

Go to latest
Published: Mar 18, 2023 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BuildTopicPath

func BuildTopicPath(tenantName, namespace, topicName string) string

func Close

func Close()

func GetConsumer

func GetConsumer(namespace string, topic string) wpcm.Consumer

func GetProducer

func GetProducer(namespace string, topic string) wpcm.Producer

func RegisterConsumer

func RegisterConsumer(namespace string, topic string, handler wpcm.Handler)

func RegisterProducer

func RegisterProducer(namespace string, topic string)

Types

type Wpc

type Wpc struct {
	// contains filtered or unexported fields
}

func New

func New(connectionUrl string, tenant string, logger *zap.SugaredLogger, pulsarOptions ...*pulsar.ClientOptions) *Wpc

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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