chat

package
v0.1.0 Latest Latest
Warning

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

Go to latest
Published: Sep 17, 2020 License: MIT Imports: 7 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

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

Functions

func OnSessionClosed

func OnSessionClosed(s *session.Session)

OnSessionClosed HH

Types

type RoomService

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

RoomService Hh

func (*RoomService) JoinRoom

func (rs *RoomService) JoinRoom(s *session.Session, msg *protocol.JoinRoomRequest) error

JoinRoom HH

func (*RoomService) SyncMessage

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

SyncMessage HH

type SyncMessage

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

SyncMessage HH

Jump to

Keyboard shortcuts

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