Skip to content

mock & mcp #6

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 51 commits into
base: mvp
Choose a base branch
from
Open

mock & mcp #6

wants to merge 51 commits into from

Conversation

aice030
Copy link
Collaborator

@aice030 aice030 commented Aug 15, 2025

mock系统的存储服务,实现上传下载和删除功能,另外实现了模拟内存泄漏和cpu飙升的故障方法
mcp服务,实现了获取prometheus数据(真实数据,需要promql语句)和日志(返回固定值)的功能

JaD1ng and others added 30 commits August 8, 2025 14:13
添加项目技术选型、目录结构说明
# Conflicts:
#	mock-s3-storage/shared/errors/types.go
#	mock-s3-storage/shared/pkg/metrics/metrics.go
- 合并 shared 库的接口设计到 mock 分支
- 包含完整的遥测接口(metrics, logs, tracing)
- 错误处理系统和配置管理
- 解决 .gitignore 合并冲突
- config: 统一配置管理,移除重复定义
- faults: 合并errors和faults包,完善错误注入与类型关联
- httpclient: 简化HTTP客户端接口,去除过度设计的企业级特性
- httpserver: 简化HTTP服务器接口,专注核心功能
- telemetry: 重构可观测性模块,分离logs/metrics/tracing包
- database/discovery: 简化接口设计,移除工厂模式

总体代码减少约80%,保持核心功能的同时提升可维护性
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants