mailbox

package
v2.0.0-...-6ed2e0c Latest Latest
Warning

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

Go to latest
Published: Dec 13, 2024 License: Apache-2.0 Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type ChannelName

type ChannelName string
const (
	ObjectChannel          ChannelName = "ObjectChannel"
	MeterDefinitionChannel ChannelName = "MeterDefinitionChannel"
)

type Mailbox

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

func ProvideMailbox

func ProvideMailbox(log logr.Logger) *Mailbox

func (*Mailbox) Broadcast

func (s *Mailbox) Broadcast(channelName ChannelName, obj cache.Delta) error

func (*Mailbox) RegisterListener

func (s *Mailbox) RegisterListener(channelName ChannelName, ch chan cache.Delta)

func (*Mailbox) Start

func (s *Mailbox) Start(ctx context.Context) error

type MailboxChannelProducer

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

func (*MailboxChannelProducer) Start

Start will start processing pops from the dictionary. Will block

type MeterDefinitionChannelProducer

type MeterDefinitionChannelProducer struct {
	MailboxChannelProducer
}

func ProvideMeterDefinitionChannelProducer

func ProvideMeterDefinitionChannelProducer(
	dictionary *stores.MeterDefinitionDictionary,
	mb *Mailbox,
	log logr.Logger,
) *MeterDefinitionChannelProducer

type ObjectChannelProducer

type ObjectChannelProducer struct {
	MailboxChannelProducer
}

func ProvideObjectChannelProducer

func ProvideObjectChannelProducer(
	meterDefinitionStore *stores.MeterDefinitionStore,
	mb *Mailbox,
	log logr.Logger,
) *ObjectChannelProducer

Jump to

Keyboard shortcuts

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