channels

package
v0.8.6 Latest Latest
Warning

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

Go to latest
Published: Feb 27, 2025 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

View Source
const (
	Struct = "struct"
)

Variables

View Source
var (
	BrokerPublish   = "broker-publish"
	BrokerSubscribe = "broker-subscribe"
)
View Source
var (
	OS     = "os"
	Stop   = "stop"
	ReSync = "resync"
)

Functions

func NewChannelPool

func NewChannelPool() map[string]GenericChannel

Types

type BrokerPublishChannel

type BrokerPublishChannel chan *BrokerPublishPayload

func NewBrokerPublishChannel

func NewBrokerPublishChannel() BrokerPublishChannel

func (BrokerPublishChannel) Stop

func (ch BrokerPublishChannel) Stop()

type BrokerPublishPayload

type BrokerPublishPayload struct {
	Subject string
	Data    *broker.Message
}

type BrokerSubscribeChannel

type BrokerSubscribeChannel chan *broker.Message

func NewBrokerSubscribeChannel

func NewBrokerSubscribeChannel() BrokerSubscribeChannel

func (BrokerSubscribeChannel) Stop

func (ch BrokerSubscribeChannel) Stop()

type GenericChannel

type GenericChannel interface {
	Stop()
}

type OSChannel

type OSChannel chan os.Signal

func NewOSChannel

func NewOSChannel() OSChannel

func (OSChannel) Stop

func (ch OSChannel) Stop()

type ReSyncChannel

type ReSyncChannel chan struct{}

func NewReSyncChannel

func NewReSyncChannel() ReSyncChannel

func (ReSyncChannel) ReSyncInformer added in v0.7.1

func (ch ReSyncChannel) ReSyncInformer()

func (ReSyncChannel) Stop

func (ch ReSyncChannel) Stop()

type StopChannel

type StopChannel chan struct{}

func NewStopChannel

func NewStopChannel() StopChannel

func (StopChannel) Stop

func (ch StopChannel) Stop()

type StructChannel

type StructChannel chan struct{}

func NewStructChannel

func NewStructChannel() StructChannel

func (StructChannel) Stop

func (ch StructChannel) Stop()

Jump to

Keyboard shortcuts

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