v1

package
v0.0.0-...-0f11903 Latest Latest
Warning

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

Go to latest
Published: Mar 28, 2023 License: MIT Imports: 16 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MahjongServer

type MahjongServer struct {
	pb.UnimplementedMahjongServer
	// contains filtered or unexported fields
}

func NewMahjongServer

func NewMahjongServer(maxClients int) *MahjongServer

func (*MahjongServer) CreateRoom

func (*MahjongServer) JoinRoom

func (*MahjongServer) LeaveRoom

func (s *MahjongServer) LeaveRoom(c *client) error

LeaveRoom detect when client disconnects or leaves room

func (*MahjongServer) Login

func (s *MahjongServer) Login(ctx context.Context, in *pb.LoginRequest) (*pb.LoginReply, error)

func (*MahjongServer) Logout

func (s *MahjongServer) Logout(ctx context.Context, in *pb.Empty) (*pb.LogoutReply, error)

func (*MahjongServer) Ping

func (s *MahjongServer) Ping(ctx context.Context, in *pb.Empty) (*pb.Empty, error)

func (*MahjongServer) Ready

func (s *MahjongServer) Ready(stream pb.Mahjong_ReadyServer) error

func (*MahjongServer) RefreshRoom

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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