base

package
v0.1.3 Latest Latest
Warning

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

Go to latest
Published: Aug 5, 2020 License: MIT Imports: 3 Imported by: 0

Documentation

Overview

Package base 网关的基本接口

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type GateHook

type GateHook interface {
	// 接受到客户端tcp连接
	OnAcceptClientConnect(conn net.Conn)
	// 新的客户端连接对象
	OnNewClient(client *connect.Client)
	// 关闭客户端连接对象
	OnCloseClient(client *connect.Client)
	// 收到客户端消息
	OnRecvClientMsg(client *connect.Client, msgbin *msg.MessageBinary)
}

GateHook 上层网关服务需要实现的处理网关事件的接口

Jump to

Keyboard shortcuts

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