Welcome to the common repository for the kptm-tools organization!
This Go module provides shared resources to standardize communication and data handling across microservices.
The common module includes:
- 📦 Event Payloads: Standardized JSON structures for the EventBus communication.
- ⚙️ Utilities: Shared helpers and constants.
- 📋 Documentation: A single source of truth for payload structures.
Add the common module to your Go project:
go get github.com/kptm-tools/commonImport the necessary structures or utilities in your Go code:
import "github.com/kptm-tools/common/events"
// Example usage
event := events.ScanStarted{
ScanID: "1234",
Target: "example.com",
ScanType: "nmap",
}- Documentation: All payloads are documented in the events package.
- Contribution Guide: See CONTRIBUTING.md for details.
We welcome contributions! Open an issue or create a pull request to suggest improvements or report bugs.
Happy coding! 🎉