Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Subscription ¶
type Subscription struct { Id uint Messages chan *Message UserEnter chan *User UserExit chan *User // contains filtered or unexported fields }
func Subscribe ¶
func Subscribe(chatroomName string, user *User) *Subscription
func (*Subscription) SendMessage ¶
func (s *Subscription) SendMessage(message *Message)
func (*Subscription) Unsubscribe ¶
func (s *Subscription) Unsubscribe()
Click to show internal directories.
Click to hide internal directories.