MCPcopy Index your code
hub / github.com/changkun/midgard

github.com/changkun/midgard @v0.1.0

Chat with this repo
repository ↗ · DeepWiki ↗ · release v0.1.0 ↗ · + Follow
312 symbols 792 edges 53 files 122 documented · 39% updated 2y agov0.1.0 · 2024-01-06★ 2276 open issues
What it actually does AI analysis from the code graph — generated when you open this
loading…
README

midgard midgard

English | 中文

米德加德(midgard)是一个跨平台的全局剪贴板服务,支持 macOS/Linux/Windows/iOS。

文档

贡献

参与贡献最简单的方式就是提供反馈。我非常希望听到你认为这个服务缺少些什么。 欢迎提交 IssuePRs 提供反馈。

致谢

我希望感谢杨文饶全成在项目早期进行的有启发性的讨论及测试。

许可

版权所有 2020-2021 欧长坤。保留所有权利。

Extension points exported contracts — how you extend this code

Runner (Interface)
Runner is a Generic way to stop and start a service. [4 implementers]
internal/service/service.go
Clipboard (Interface)
Clipboard is an interface that defines the operations of a clipboard [2 implementers]
internal/clipboard/universal.go
Installer (Interface)
Installer is a simple install and remove commands. [3 implementers]
internal/service/service.go
LocalClipboard (Interface)
LocalClipboard is an extension to the Clipboard interface for local purpose [1 implementers]
internal/clipboard/local.go
Controller (Interface)
Controller is a service that implements ServiceController is able to start and stop itself. [3 implementers]
internal/service/service.go
UniversalClipboard (Interface)
UniversalClipboard is an of Clipboard interface for universal purpose [1 implementers]
internal/clipboard/universal.go
Logger (Interface)
Logger is a service that implements ServiceLogger can perform simple system logging. [3 implementers]
internal/service/service.go
Service (Interface)
Service represents a generic way to interact with the system's service.
internal/service/service.go

Core symbols most depended-on inside this repo

BytesToString
called by 27
internal/utils/strbytes.go
Get
called by 18
internal/config/config.go
StringToBytes
called by 17
internal/utils/strbytes.go
Encode
called by 17
internal/utils/uuid.go
Write
called by 15
internal/clipboard/universal.go
Run
called by 13
internal/service/service.go
S
called by 12
internal/config/config.go
Read
called by 8
internal/clipboard/universal.go

Shape

Method 165
Function 87
Struct 40
Interface 11
TypeAlias 9

Languages

Go100%

Modules by API surface

internal/types/proto/midgard.pb.go65 symbols
internal/types/proto/midgard_grpc.pb.go30 symbols
internal/service/service.go20 symbols
internal/service/service_linux.go15 symbols
internal/utils/uuid.go13 symbols
internal/service/service_windows.go13 symbols
internal/types/api.go11 symbols
internal/service/service_darwin.go11 symbols
internal/clipboard/universal.go10 symbols
internal/term/color.go9 symbols
internal/config/config.go8 symbols
internal/utils/copy.go7 symbols

For agents

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

⬇ download graph artifact

Ask about this repo answers extend the page