cherry

package module
v1.1.3 Latest Latest
Warning

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

Go to latest
Published: Jul 17, 2021 License: MIT Imports: 16 Imported by: 15

README

cherry

cherry game server engine for golang

TODO

基础
  • 多环境profile配置
日志
  • 多文件配置输出
  • 过滤配置
  • LEVEL定义
  • 滚动日志
消息&路由
  • 包结构
  • 包解码编码
  • 消息路由
  • 消息序列化
  • 事件
  • 定时器
网络协议
  • tcp
  • websocket
  • http server
  • http client
  • kcp
数据配表
  • 本地加载配表
  • 第三方数据源加载配表(redis)
  • 热更新配表
  • 类型检测
  • 条件查询(go-linq)
集群
  • 配置方式加载结点
  • etcd方式加载&更新结点
  • grpc
其他
  • mysql db队列
  • nat消息队列
  • gopher-lua脚本

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	facade.INode
	facade.ISerializer
	facade.IPacketCodec
	// contains filtered or unexported fields
}

func App added in v1.1.3

func App() *Application

func NewApp

func NewApp(profilePath, profileName, nodeId string) *Application

NewApp create new application instance

func NewDefaultApp added in v1.1.0

func NewDefaultApp() *Application

func (*Application) All

func (a *Application) All() []facade.IComponent

func (*Application) Find

func (a *Application) Find(name string) facade.IComponent

func (*Application) OnShutdown added in v1.1.0

func (a *Application) OnShutdown(fn ...func())

func (*Application) Remove

func (a *Application) Remove(name string) facade.IComponent

Remove remove component by name

func (*Application) Running

func (a *Application) Running() bool

func (*Application) SetPacketCodec added in v1.1.0

func (a *Application) SetPacketCodec(codec facade.IPacketCodec)

func (*Application) SetSerializer added in v1.1.0

func (a *Application) SetSerializer(serializer facade.ISerializer)

func (*Application) Shutdown

func (a *Application) Shutdown()

func (*Application) StartTime added in v1.1.0

func (a *Application) StartTime() string

func (*Application) Startup

func (a *Application) Startup(components ...facade.IComponent)

Startup load components before startup

Directories

Path Synopsis
_examples
component
gin
Package cherryGin from https://github.com/gin-contrib/zap/
Package cherryGin from https://github.com/gin-contrib/zap/
orm
components
cron Module
data-config Module
etcd Module
gin Module
gops Module
gorm Module
mongo Module
examples module
extend
map
Package cherryMap file from https://github.com/beego/beego/blob/develop/core/utils/safemap.go Package cherryMap file from https://github.com/gogf/gf
Package cherryMap file from https://github.com/beego/beego/blob/develop/core/utils/safemap.go Package cherryMap file from https://github.com/gogf/gf
mapstructure
Package cherryMapStructure file from https://github.com/goinggo/mapstructure Package cherryMapStructure code from https://github.com/goinggo/mapstructure The mapstructure package exposes functionality to convert an abitrary map[string]interface{} into a native Go structure.
Package cherryMapStructure file from https://github.com/goinggo/mapstructure Package cherryMapStructure code from https://github.com/goinggo/mapstructure The mapstructure package exposes functionality to convert an abitrary map[string]interface{} into a native Go structure.
net
regex
Package cherryRegex file from https://github.com/gogf/gf
Package cherryRegex file from https://github.com/gogf/gf
slice
Package cherySlice code from: https://github.com/beego/beego/blob/develop/core/utils/slice.go
Package cherySlice code from: https://github.com/beego/beego/blob/develop/core/utils/slice.go
snowflake
Package cherrySnowflake code from: https://github.com/bwmarrin/snowflake snowflake provides a very simple Twitter snowflake generator and parser.
Package cherrySnowflake code from: https://github.com/bwmarrin/snowflake snowflake provides a very simple Twitter snowflake generator and parser.
time
Package cherryTime code from: https://github.com/golang-module/carbon
Package cherryTime code from: https://github.com/golang-module/carbon
utils
Package cherryUtils file from https://github.com/gogf/gf Package cherryUtils file from https://github.com/gogf/gf Package cherryUtils file from https://github.com/gogf/gf
Package cherryUtils file from https://github.com/gogf/gf Package cherryUtils file from https://github.com/gogf/gf Package cherryUtils file from https://github.com/gogf/gf
net

Jump to

Keyboard shortcuts

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