Backend Utilities and APIs for TriggerX
triggerx-backend/
├── cmd/ # Application entry points
│ ├── keeper/ # Keeper service entry point
│ ├── quorum/ # Quorum creation service
│ ├── manager/ # Task management service
│ └── validator/ # Task validation service
│
├── internal/ # Private application code
│ ├── keeper/ # Keeper service implementation
│ ├── quorum/ # Quorum creation logic
│ ├── manager/ # Task management implementation
│ └── validator/ # Task validation logic
│
├── pkg/ # Public shared libraries
│ ├── communication/ # Network communication utilities
│ └── database/ # Database interactions
│
└── scripts/ # Utility scripts
└── start-*.sh # Service startup scripts
-
Keeper Service (
cmd/keeper/
)- Manages distributed keeper nodes
- Handles leader and worker coordination
- Aggregates data from multiple sources
-
Quorum Creator (
cmd/quorumcreator/
)- Establishes and maintains quorum requirements
- Handles consensus mechanisms
- Manages node participation
-
Manager (
cmd/manager/
)- Orchestrates job and task distribution
- Implements load balancing
- Manages thread pools and resources
-
Validator (
cmd/validator/
)- Validates execution results
- Ensures data integrity
- Submits results on-chain
-
Communication (
pkg/communication/
)- P2P Network setup and configuration
- Peer discovery mechanisms
- Data transmission protocols
-
Database (
pkg/database/
)- ScyllaDB interactions
- Query operations
- Language: Go
- Database: ScyllaDB
[Add installation and setup instructions here]