subscribers

package
v0.0.0-...-cba8fe1 Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type OnTaskListSectionLockChangedUnsubscribedCallback

type OnTaskListSectionLockChangedUnsubscribedCallback func(ps pubsub.PubSub, subscriber pubsub.Subscriber, modelPlanID uuid.UUID)

OnTaskListSectionLockChangedUnsubscribedCallback is a callback that will be called when a TaskListSectionLockChangedSubscriber is unsubscribed

type TaskListSectionLockChangedSubscriber

type TaskListSectionLockChangedSubscriber struct {
	ID        uuid.UUID
	Principal authentication.Principal
	Channel   chan *model.TaskListSectionLockStatusChanged
	// contains filtered or unexported fields
}

TaskListSectionLockChangedSubscriber is a Subscriber definition to receive TaskListSectionLockStatusChanged payloads

func NewTaskListSectionLockChangedSubscriber

func NewTaskListSectionLockChangedSubscriber(Principal authentication.Principal) (*TaskListSectionLockChangedSubscriber, error)

NewTaskListSectionLockChangedSubscriber is a constructor to create a new TaskListSectionLockChangedSubscriber

func (*TaskListSectionLockChangedSubscriber) GetChannel

GetChannel provides this Subscriber's feedback channel

func (*TaskListSectionLockChangedSubscriber) GetID

GetID returns this Subscriber's unique identifying token

func (*TaskListSectionLockChangedSubscriber) GetPrincipal

GetPrincipal returns this Subscriber's associated EUAID

func (*TaskListSectionLockChangedSubscriber) Notify

func (t *TaskListSectionLockChangedSubscriber) Notify(payload interface{})

Notify will be called by the PubSub service when an event this Subscriber is registered for is dispatched

func (*TaskListSectionLockChangedSubscriber) NotifyUnsubscribed

func (t *TaskListSectionLockChangedSubscriber) NotifyUnsubscribed(ps *pubsub.ServicePubSub, sessionID uuid.UUID)

NotifyUnsubscribed will be called by the PubSub service when this Subscriber is unsubscribed

func (*TaskListSectionLockChangedSubscriber) SetOnUnsubscribedCallback

SetOnUnsubscribedCallback is an optional callback that will be called when this Subscriber is unsubscribed

Jump to

Keyboard shortcuts

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