Expand description
Farming cluster farmer
Farmer is responsible for maintaining farms, doing audits and generating proofs when solution is found in one of the plots.
This module exposes some data structures for NATS communication, custom farm implementation designed to work with cluster farmer and a service function to drive the backend part of the farmer.
Structs§
- Cluster
Farm - Cluster farm implementation
- Cluster
Farmer Farm Details - Farm details
- Cluster
Farmer Farm Details Request - Request farm details from farmer
- Cluster
Farmer Id - An identifier for a cluster farmer, can be used for in logs, thread names, etc.
- Cluster
Farmer Identify Broadcast - Broadcast with cluster farmer id for identification
Functions§
- farmer_
service - Create farmer service for specified farms that will be processing incoming requests and send periodic identify notifications.