room

package
v0.0.0-...-d329eb9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 6, 2024 License: Apache-2.0 Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Room

type Room struct {
	Users []*user.User
	Code  string
	// contains filtered or unexported fields
}

func CreateRoom

func CreateRoom(code string) *Room

func GetRoom

func GetRoom(code string) (*Room, bool)

func New

func New(code string) *Room

func (*Room) DisconnectUser

func (r *Room) DisconnectUser(u *user.User)

func (*Room) JoinUser

func (r *Room) JoinUser(u *user.User)

func (*Room) WriteMsgToUsers

func (r *Room) WriteMsgToUsers(m string)

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL