Documentation ¶
Index ¶
- Variables
- func GetModuleEntry(name string) func()
- func GetStackInfo(skip int) (string, int)
- func GetStackInfoString(skip int) string
- func IsLocal(id CellID) bool
- func Name2ID(name string) int
- func ParsePacket(pkt *Packet, msgType reflect.Type) (interface{}, error)
- func ReadConfig(data interface{})
- func ReflectContent(d interface{}) string
- func ReflectProtoName(msg proto.Message) string
- func RegisterModuleEntry(entry func())
- func Send(target CellID, data interface{}) bool
- func SendLocal(target CellID, data interface{}) bool
- func SetContentReflector(r ContentReflector)
- func SetExpressDriver(driver func(CellID, interface{}) bool)
- func StartModule()
- func StringHashNoCase(s string) uint32
- func StripFileName(filename string, part int) string
- func Type2ID(msg proto.Message) int
- type CellID
- type ContentReflector
- type EventDispatcher
- type EventInit
- type IPacketStream
- type Packet
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // 本进程的ID RegionID int32 )
Functions ¶
func GetModuleEntry ¶
func GetModuleEntry(name string) func()
func GetStackInfoString ¶
func ReadConfig ¶
func ReadConfig(data interface{})
func ReflectContent ¶
func ReflectContent(d interface{}) string
func ReflectProtoName ¶
func RegisterModuleEntry ¶
func RegisterModuleEntry(entry func())
func SetExpressDriver ¶
设置快递驱动, 负责将给定内容跨进程送达
func StartModule ¶
func StartModule()
func StripFileName ¶
将绝对路径按需要的节从右压缩 例如: c:/Develop/nucleus.git/server/src/core/util/stack.go中 当cStripPathSection=3 返回 core/util/stack.go
Types ¶
type ContentReflector ¶
type ContentReflector interface {
Reflect(interface{}) string
}
type EventDispatcher ¶
type EventDispatcher struct {
// contains filtered or unexported fields
}
func NewEventDispatcher ¶
func NewEventDispatcher() *EventDispatcher
func (*EventDispatcher) Add ¶
func (self *EventDispatcher) Add(name string, callback func(...interface{}))
func (*EventDispatcher) Clear ¶
func (self *EventDispatcher) Clear()
func (*EventDispatcher) Invoke ¶
func (self *EventDispatcher) Invoke(name string, args ...interface{})
func (*EventDispatcher) Remove ¶
func (self *EventDispatcher) Remove(name string, callback func(...interface{}))
type IPacketStream ¶
封包流
Source Files ¶
Directories ¶
Path | Synopsis |
---|---|
dispatcher包提供以注册+回调方式的消息处理方式, 封装消息解包, 打包的过程
|
dispatcher包提供以注册+回调方式的消息处理方式, 封装消息解包, 打包的过程 |
ltvsocket包使用cell框架封装socket层, 同时使用length-type-value格式的私有协议 进行收发封包处理 使用本包可以迅速建立socket互联及统一的开发框架
|
ltvsocket包使用cell框架封装socket层, 同时使用length-type-value格式的私有协议 进行收发封包处理 使用本包可以迅速建立socket互联及统一的开发框架 |
nexus包为cellnet提供了跨进程,机器的访问支持 每个独立操作系统进程就是一个region, 通过配置文件设定region间的互联方法
|
nexus包为cellnet提供了跨进程,机器的访问支持 每个独立操作系统进程就是一个region, 通过配置文件设定region间的互联方法 |
proto
|
|
coredef
Package coredef is a generated protocol buffer package.
|
Package coredef is a generated protocol buffer package. |
sample
|
|
tools
|
|
Click to show internal directories.
Click to hide internal directories.