MCPcopy Index your code
hub / github.com/Cyinx/einx

github.com/Cyinx/einx @1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release 1.0 ↗ · + Follow
399 symbols 808 edges 41 files 0 documented · 0% 4 cross-repo links
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

einx

a framework in golang for game server or app server.

a example server for einx (https://github.com/Cyinx/game_server_einx)

Features

  • User-Friendly
  • Flexible
  • Modularity
  • High-Precision Timer Support
  • Simple RPC

Getting Started

Installation

   go get github.com/go-sql-driver/mysql
   go get github.com/yuin/gopher-lua
   go get github.com/Cyinx/einx

Brief

  • Agent - Basic Interface
  • Module - Service worker
  • Network - Network Unit for Module.Implement of Component.
  • Timer - Timer wheel.

Document and Example

License

Extension points exported contracts — how you extend this code

Agent (Interface)
(no doc) [6 implementers]
agent/agent.go
EventMsg (Interface)
(no doc) [5 implementers]
event/event_msg.go
Component (Interface)
(no doc) [4 implementers]
component/component.go
Linker (Interface)
(no doc) [3 implementers]
network/network.go
ModuleWoker (Interface)
(no doc) [2 implementers]
module/module.go
WorkerPool (Interface)
(no doc) [1 implementers]
module/worker_pool.go
Module (Interface)
(no doc) [1 implementers]
context/module.go
Context (Interface)
(no doc) [1 implementers]
context/context.go

Core symbols most depended-on inside this repo

Push
called by 26
queue/rw_queue.go
Get
called by 19
context/context.go
Close
called by 13
agent/agent.go
GetID
called by 11
agent/agent.go
Put
called by 10
queue/queue.go
Unlock
called by 9
queue/cond_queue.go
Reset
called by 9
event/event_msg.go
Run
called by 6
module/module.go

Shape

Method 249
Function 88
Struct 38
Interface 16
TypeAlias 5
FuncType 3

Languages

Go100%

Modules by API surface

module/module.go32 symbols
network/network.go31 symbols
event/event_msg.go23 symbols
network/tcp_conn.go22 symbols
module/worker_pool.go18 symbols
db/mongodb/mongodb.go18 symbols
slog/slog_manager.go15 symbols
lua/lua_state.go15 symbols
slog/slog_write.go13 symbols
network/keep_alive.go13 symbols
queue/queue.go12 symbols
timer/timer.go11 symbols

Datastores touched

(mongodb)Database · 1 repos

For agents

$ claude mcp add einx \
  -- python -m otcore.mcp_server <graph>

⬇ download graph artifact