MCPcopy Index your code
hub / github.com/dearcode/candy

github.com/dearcode/candy @v1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v1.0 ↗ · + Follow
961 symbols 1,654 edges 41 files 193 documented · 20%
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

Logo

Build Status Go Report Card GoDoc

项目背景

Candy是一款即时通信软件。

项目框架

服务端

  • Gate 接收客户端请求,负责客户端连接维护
  • Notice 消息分发中心,整个系统的消息队列
  • Store 消息及用户信息存储

Android客户端

https://github.com/dearcode/candy-android

项目运行

获取源码

推荐使用以下方式之一获得源码: 1. 将 candy 代码 clone 到 $GOPATH/src/github.com/dearcode 目录下 2. 使用 go get -u github.com/dearcode/candy 以保证 import 路径正确

编译安装

make
依次启动 master, notice, store, gate
直接运行不需要参数,默认使用9000到9004端口

技术讨论QQ群:Circle CI

Extension points exported contracts — how you extend this code

MessageHandler (Interface)
MessageHandler 接收服务器端推送来的消息 [2 implementers]
client/candy.go

Core symbols most depended-on inside this repo

Error
called by 163
client/util.go
endSection
called by 14
candy.go
start
called by 10
store/file.go
getOnlineSession
called by 10
gate/server.go
Log
called by 10
util/log/log.go
NewError
called by 9
client/util.go
getSession
called by 9
gate/server.go
get
called by 7
store/file.go

Shape

Method 671
Function 154
Struct 121
Interface 13
TypeAlias 2

Languages

Go100%

Modules by API surface

meta/gate.pb.go293 symbols
meta/store.pb.go238 symbols
meta/notice.pb.go53 symbols
meta/common.pb.go38 symbols
client/candy.go30 symbols
gate/server.go27 symbols
util/log/log.go23 symbols
candy.go22 symbols
meta/master.pb.go21 symbols
store/server.go18 symbols
gate/store.go18 symbols
store/user.go17 symbols

For agents

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

⬇ download graph artifact