room

package
v0.0.0-...-51919ad Latest Latest
Warning

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

Go to latest
Published: Apr 23, 2022 License: Apache-2.0 Imports: 2 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 {
	*sync.Mutex
	// contains filtered or unexported fields
}

func NewRoom

func NewRoom(id string, capacity int) *Room

func (*Room) AddMember

func (r *Room) AddMember(id string, conn *websocket.Conn) bool

func (*Room) ExistMember

func (r *Room) ExistMember(id string) bool

func (*Room) RemoveMember

func (r *Room) RemoveMember(id string)

Jump to

Keyboard shortcuts

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