Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type CallbackFn ¶
type CallbackFn func(notification *Notification)
type Notification ¶
type Notification struct { Subject interface{} Entity interface{} Reason string }
type Subject ¶
type Subject struct { Subscribers []CallbackFn // contains filtered or unexported fields }
func NewSubject ¶
func NewSubject() *Subject
func (*Subject) GetNotification ¶
func (s *Subject) GetNotification(fn CallbackFn)
func (*Subject) Subscribe ¶
func (s *Subject) Subscribe(fn CallbackFn)
Click to show internal directories.
Click to hide internal directories.