MCPcopy
hub / github.com/GoBelieveIO/im_service

github.com/GoBelieveIO/im_service @v1.0.4 sqlite

repository ↗ · DeepWiki ↗ · release v1.0.4 ↗
724 symbols 2,082 edges 46 files 39 documented · 5%
README

im service

  1. 支持点对点消息,群组消息,聊天室消息
  2. 支持集群部署
  3. 单机支持50w用户在线
  4. 单机处理消息5000条/s
  5. 支持超大群组(3000人)

编译运行

  1. 安装go以及依赖包
  2. make
  3. 安装mysql数据库,redis,并导入db.sql
  4. 修改配置文件
  5. ./im im.cfg;./ims ims.cfg; ./imr imr.cfg

注:工程中未包含平台的数据库结构文件

Extension points exported contracts — how you extend this code

IMessage (Interface)
(no doc) [38 implementers]
protocol.go
GroupObserver (Interface)
(no doc)
group_manager.go
IVersionMessage (Interface)
(no doc) [38 implementers]
protocol.go
MessageCreator (FuncType)
(no doc)
protocol.go
VersionMessageCreator (FuncType)
(no doc)
protocol.go

Core symbols most depended-on inside this repo

Write
called by 141
client.go
Read
called by 127
client.go
Get
called by 81
storage_client.go
WriteHttpError
called by 78
auth.go
Close
called by 57
reload.go
SendMessage
called by 50
protocol.go
ReceiveMessage
called by 32
protocol.go
Add
called by 27
set.go

Shape

Method 370
Function 252
Struct 81
Class 11
TypeAlias 5
Interface 3
FuncType 2

Languages

Go86%
Python14%

Modules by API surface

protocol.go89 symbols
storage_server.go62 symbols
client.py60 symbols
storage_message.go49 symbols
route_server.go39 symbols
im.go29 symbols
storage_client.go23 symbols
reload.go21 symbols
channel.go21 symbols
voip_client.py19 symbols
im_client.go18 symbols
storage_sync.go17 symbols

For agents

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

⬇ download graph artifact