pubsub

package
v0.243.0 Latest Latest
Warning

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

Go to latest
Published: Jun 5, 2024 License: Apache-2.0 Imports: 9 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DAL

type DAL interface {
	GetSubscriptionsNeedingUpdate(ctx context.Context) ([]model.Subscription, error)
	ProgressSubscription(ctx context.Context, subscription model.Subscription) error
	CompleteEventForSubscription(ctx context.Context, module, name string) error
}

type Manager

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

func New

func New(ctx context.Context, key model.ControllerKey, dal *dal.DAL) *Manager

func (*Manager) HandleEventNotification

func (m *Manager) HandleEventNotification()

func (*Manager) HandleTopicNotification

func (m *Manager) HandleTopicNotification()

func (*Manager) OnCallCompletion

func (m *Manager) OnCallCompletion(ctx context.Context, tx *dal.Tx, origin dal.AsyncOriginPubSub, failed bool) error

func (*Manager) UpdatedControllerList

func (m *Manager) UpdatedControllerList(ctx context.Context, controllers []dal.Controller)

UpdatedControllerList synchronises the hash ring with the active controllers.

Jump to

Keyboard shortcuts

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