Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DefaultPayout ¶
func (DefaultPayout) GetAmount ¶
func (e DefaultPayout) GetAmount() int64
func (DefaultPayout) GetID ¶
func (e DefaultPayout) GetID() string
func (DefaultPayout) GetTimestamp ¶
func (e DefaultPayout) GetTimestamp() int64
type DefaultPoolEvent ¶
func (DefaultPoolEvent) GetData ¶
func (e DefaultPoolEvent) GetData() string
func (DefaultPoolEvent) GetTimestamp ¶
func (e DefaultPoolEvent) GetTimestamp() int64
func (DefaultPoolEvent) GetType ¶
func (e DefaultPoolEvent) GetType() string
type DefaultWorker ¶
type DefaultWorker struct {
ID string
PendingFees int64
PaidFees int64
NodeType string
Online bool
Region string
}
func (DefaultWorker) GetID ¶
func (e DefaultWorker) GetID() string
func (DefaultWorker) GetNodeType ¶
func (e DefaultWorker) GetNodeType() string
func (DefaultWorker) GetPaidFees ¶
func (e DefaultWorker) GetPaidFees() int64
func (DefaultWorker) GetPendingFees ¶
func (e DefaultWorker) GetPendingFees() int64
func (DefaultWorker) GetRegion ¶
func (e DefaultWorker) GetRegion() string
type PreferredWorkerCriteria ¶ added in v0.0.6
type Worker ¶
type Worker interface {
GetID() string
GetPendingFees() int64 //wei values
GetPaidFees() int64 //wei values
GetNodeType() string
GetRegion() string
}
Worker represents a remote worker with payout tracking.
type WorkerCriteria ¶ added in v0.0.6
type WorkerCriteria struct {
NodeType string
Region string
// Additional filtering data can be stored in this map.
Criteria map[string]any
}
WorkerCriteria is a generic implementation of PreferredWorkerCriteria.
func (WorkerCriteria) GetCriteria ¶ added in v0.0.6
func (c WorkerCriteria) GetCriteria() any
func (WorkerCriteria) GetNodeType ¶ added in v0.0.6
func (c WorkerCriteria) GetNodeType() string
func (WorkerCriteria) GetRegion ¶ added in v0.0.6
func (c WorkerCriteria) GetRegion() string
Click to show internal directories.
Click to hide internal directories.