broker

package
v0.0.5 Latest Latest
Warning

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

Go to latest
Published: Nov 29, 2024 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BaseSubscription

type BaseSubscription struct {
	TopicEventChan chan TopicEvent
	Topics         []string
}

BaseSubscription ...

func (BaseSubscription) GetTopicEventChan

func (baseSubscription BaseSubscription) GetTopicEventChan() chan TopicEvent

GetTopicEventChan returns topic with event channel

func (BaseSubscription) GetTopics

func (baseSubscription BaseSubscription) GetTopics() []string

GetTopics returns topics for pubsub or streams

type ISubscription

type ISubscription interface {
	GetTopicEventChan() chan TopicEvent
	GetTopics() []string
}

ISubscription is an interface for pubsub and stream subscriptions

type TopicEvent

type TopicEvent struct {
	Event []byte
	Topic string
}

TopicEvent ...

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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