common

package
v0.0.0-...-96491ad Latest Latest
Warning

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

Go to latest
Published: Jan 19, 2021 License: MIT Imports: 2 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Context

type Context struct {
	gocontext.Context     // golang context ,可以用于控制并发,传递全局变量等
	context.ITime         // 时间对象
	context.IRand         // 随机数生成器
	context.IConfig       // 配置对象
	context.ILogger       // 日志对象
	context.INode         // 提供消息中继等功能
	context.IRole2Account // 提供`根据角色名查找账号`的功能;角色名重名检查也可以用该接口
	context.IUID          // UID 生成器
	context.ITCPServer    // 提供对外的 TCP 服务。 注册该字段相应接口,才会开启
	context.ILogin        // 节点类型为 Login,才会开启
	context.IGateway      // 节点类型为 Gateway ,才会开启
}

Context : 应用程序上下文

type IPlugin

type IPlugin interface {
	Start() bool
	Close()
}

IPlugin : 插件接口

Directories

Path Synopsis

Jump to

Keyboard shortcuts

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