Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type SubscribeMsg ¶
type TimeListener ¶
type TimeListener struct { Subscribers []*subscriber // contains filtered or unexported fields }
func NewTimeListener ¶
func NewTimeListener() *TimeListener
func (*TimeListener) Subscribe ¶
func (listener *TimeListener) Subscribe(msg *SubscribeMsg)
func (*TimeListener) Unsubscribe ¶
func (listener *TimeListener) Unsubscribe(id int)
type UnsubscribeMsg ¶
type UnsubscribeMsg struct {
Id int
}
Click to show internal directories.
Click to hide internal directories.