Module farmer

Source
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§

ClusterFarm
Cluster farm implementation
ClusterFarmerFarmDetails
Farm details
ClusterFarmerFarmDetailsRequest
Request farm details from farmer
ClusterFarmerId
An identifier for a cluster farmer, can be used for in logs, thread names, etc.
ClusterFarmerIdentifyBroadcast
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.