chat

package
v0.0.0-...-40c89de Latest Latest
Warning

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

Go to latest
Published: Oct 9, 2023 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Service

type Service interface {
	ConnectClient(clientname string) error
	DisconnectClient(clientId uuid.UUID) error
	ListRooms() []*room
	GetRoom(id uuid.UUID) (*room, error)
	CreateRoom(clientId uuid.UUID, name string) (*room, error)
	DeleteRoom(clientId, roomId uuid.UUID) error
	JoinRoom(conn *websocket.Conn, clientId, roomId uuid.UUID) error
	LeaveRoom(clientId, roomId uuid.UUID) error
}

func NewService

func NewService() Service

Jump to

Keyboard shortcuts

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