Documentation ¶
Index ¶
- type OnTaskListSectionLockChangedUnsubscribedCallback
- type TaskListSectionLockChangedSubscriber
- func (t *TaskListSectionLockChangedSubscriber) GetChannel() <-chan *model.TaskListSectionLockStatusChanged
- func (t *TaskListSectionLockChangedSubscriber) GetID() string
- func (t *TaskListSectionLockChangedSubscriber) GetPrincipal() authentication.Principal
- func (t *TaskListSectionLockChangedSubscriber) Notify(payload interface{})
- func (t *TaskListSectionLockChangedSubscriber) NotifyUnsubscribed(ps *pubsub.ServicePubSub, sessionID uuid.UUID)
- func (t *TaskListSectionLockChangedSubscriber) SetOnUnsubscribedCallback(onUnsubscribed OnTaskListSectionLockChangedUnsubscribedCallback)
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 ¶
func (t *TaskListSectionLockChangedSubscriber) GetChannel() <-chan *model.TaskListSectionLockStatusChanged
GetChannel provides this Subscriber's feedback channel
func (*TaskListSectionLockChangedSubscriber) GetID ¶
func (t *TaskListSectionLockChangedSubscriber) GetID() string
GetID returns this Subscriber's unique identifying token
func (*TaskListSectionLockChangedSubscriber) GetPrincipal ¶
func (t *TaskListSectionLockChangedSubscriber) GetPrincipal() authentication.Principal
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 ¶
func (t *TaskListSectionLockChangedSubscriber) SetOnUnsubscribedCallback(onUnsubscribed OnTaskListSectionLockChangedUnsubscribedCallback)
SetOnUnsubscribedCallback is an optional callback that will be called when this Subscriber is unsubscribed