tworoom

package
v0.5.1 Latest Latest
Warning

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

Go to latest
Published: May 6, 2023 License: MIT Imports: 5 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

View Source
var (
	// All services in master server
	Services = &component.Components{}
)

Functions

func OnSessionClosed

func OnSessionClosed(s *session.Session)

Types

type ChatRoomService

type ChatRoomService struct {
	component.Base
	// contains filtered or unexported fields
}

func (*ChatRoomService) JoinRoom

func (*ChatRoomService) SyncMessage

func (rs *ChatRoomService) SyncMessage(s *session.Session, msg *SyncMessage) error

type SyncMessage

type SyncMessage struct {
	Name    string `json:"name"`
	Content string `json:"content"`
}

Jump to

Keyboard shortcuts

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