中文: README.zh-CN.md
A plugin collection for WuKongIM, maintained by Mininglamp-OSS as part of the octo-im plugin family.
| Plugin | Path | Status | Description |
|---|---|---|---|
| Kafka forwarder | plugins/kafka |
0.1.0 |
Forward persisted WuKongIM messages to Apache Kafka asynchronously. |
.
├── plugins/
│ └── kafka/ # Each plugin lives in its own directory
│ ├── main.go # Plugin entry (PluginNo: wk.plugin.kafka)
│ ├── internal/ # Plugin-private packages
│ ├── Makefile
│ ├── Dockerfile
│ ├── README.md
├── go.mod # Single Go module for the whole repo
├── LICENSE # Apache-2.0 (applies to all plugins)
├── CONTRIBUTING.md
├── CODE_OF_CONDUCT.md
├── CHANGELOG.md
└── .github/ # Repo-wide CI and templates
This repo uses a single Go module (github.com/Mininglamp-OSS/octo-im-plugins). All plugins share the same dependency versions to stay aligned with a given WuKongIM PDK release.
Each plugin owns its own Makefile. From the repo root:
cd plugins/kafka
make build # cross-compiles a static linux/amd64 binary: wk.plugin.kafka.wkp
make image # builds a local Docker image (no public image is published)WuKongIM scans <RootDir>/plugins/ for .wkp files. See the per-plugin README for installation details.
- Go 1.23+
- A reachable WuKongIM instance that loads
.wkpplugins - Plugin-specific dependencies (e.g., a Kafka cluster for the Kafka forwarder)
- Create
plugins/<name>/withmain.go,Makefile,Dockerfile,internal/,README.md - Use module path
github.com/Mininglamp-OSS/octo-im-plugins/plugins/<name>/internalfor internal packages - Run
go mod tidyandgo vet ./...from the repo root - Add an entry to the table above and to
CHANGELOG.md
Apache-2.0. See LICENSE, CONTRIBUTING.md.