models

package
v0.0.5 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 18, 2025 License: MIT Imports: 0 Imported by: 4

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DefaultPayout

type DefaultPayout struct {
	ID        string
	Timestamp int64
	Amount    int64
}

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

type DefaultPoolEvent struct {
	Timestamp int64
	Data      string
	Type      string
}

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 Payout

type Payout interface {
	GetID() string
	GetTimestamp() int64
	GetAmount() int64 //wei units
}

Payout represents a recorded payout for a worker.

type PoolEvent

type PoolEvent interface {
	GetTimestamp() int64
	GetData() string
	GetType() string
}

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.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL