Voice and text communications platform powered by WebRTC
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 

14 lines
264 B

package web
type Channel struct {
ID int
Name string
Topic string
Clients map[int]*Client
}
func NewChannel(id int, name string, topic string) *Channel {
c := Channel{ID: id, Name: name, Topic: topic, Clients: make(map[int]*Client)}
return &c
}