Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type RoomManager ¶
func NewManager ¶
func NewManager(natsURL string) RoomManager
type RoomStruct ¶
type RoomStruct struct { Mutex sync.Mutex RoomName string Playlist []string Owner string Users []string NatsURL string Index int Subject string Comm chan bool }
func (*RoomStruct) Run ¶
func (r *RoomStruct) Run(ctx context.Context)
Opens the NATS 'topic' and handle the flow of event
Click to show internal directories.
Click to hide internal directories.