pubsubsession

package
v10.0.8 Latest Latest
Warning

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

Go to latest
Published: Oct 13, 2022 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func InitPubSubSession

func InitPubSubSession(client pulsar.Client, topicURL *url.URL, localClusterName, remoteClusterName string) (*pubSubSession, error)

Types

type PubSubSession

type PubSubSession interface {
	GetChan() (chan []TimeStampedPayload, chan error)
	StartListening(ctx context.Context, expectedMsgCount int)
	StartSending(ctx context.Context, payloads [][]byte) []TimeStampedPayload
	ClosePubSubSession()
}

type TimeStampedPayload

type TimeStampedPayload struct {
	Payload   []byte
	TimeStamp time.Time
}

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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