cherry

package module
v1.0.0 Latest Latest
Warning

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

Go to latest
Published: Feb 3, 2021 License: MIT Imports: 11 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 {
	// contains filtered or unexported fields
}

Application

func DefaultApp

func DefaultApp() *Application

func NewApp

func NewApp(configPath, profile, nodeId string) *Application

NewApp create new application instance

func (*Application) All

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

func (*Application) Find

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

func (*Application) NodeId

func (a *Application) NodeId() string

func (*Application) NodeType

func (a *Application) NodeType() string

func (*Application) Remove

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

Remove remove component by name

func (*Application) Running

func (a *Application) Running() bool

func (*Application) Shutdown

func (a *Application) Shutdown(beforeStopHook ...func())

func (*Application) Startup

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

Startup

func (*Application) ThisNode

func (a *Application) ThisNode() cherryInterfaces.INode

Directories

Path Synopsis
component
gin
from https://github.com/gin-contrib/zap/
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
snowflake
Package snowflake provides a very simple Twitter snowflake generator and parser.
Package snowflake provides a very simple Twitter snowflake generator and parser.
utils
file from https://github.com/beego/beego/blob/develop/core/utils/slice.go
file from https://github.com/beego/beego/blob/develop/core/utils/slice.go
net
rpc

Jump to

Keyboard shortcuts

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