Documentation
¶
Index ¶
- type Chatrooms
- func (c *Chatrooms) AddNewConnection(conn *websocket.Conn)
- func (c *Chatrooms) AddNewConnectionToChatroom(chatroomName string, conn *websocket.Conn)
- func (c *Chatrooms) Broadcast(chatroomName string, message Message) error
- func (c *Chatrooms) Exists(name string) bool
- func (c *Chatrooms) InitializeChatroom(name string) error
- func (c *Chatrooms) RemoveConnection(conn *websocket.Conn)
- type ConnectedClients
- type Message
- type MessageWS
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Chatrooms ¶
type Chatrooms struct {
// contains filtered or unexported fields
}
func NewChatrooms ¶
func NewChatrooms() *Chatrooms
func (*Chatrooms) AddNewConnection ¶
func (*Chatrooms) AddNewConnectionToChatroom ¶
func (*Chatrooms) InitializeChatroom ¶
func (*Chatrooms) RemoveConnection ¶
type ConnectedClients ¶
type ConnectedClients struct {
// contains filtered or unexported fields
}
type MessageWS ¶
type MessageWS struct {
// contains filtered or unexported fields
}
func NewMessageWS ¶
func NewMessageWS(chatroomService service.ChatroomService, messageService service.MessageService) MessageWS
Click to show internal directories.
Click to hide internal directories.