Documentation ¶
Index ¶
- Variables
- type NodeSummary
- type SatelliteSummary
- type Service
- func (service *Service) AllNodesEstimations(ctx context.Context) (_ int64, err error)
- func (service *Service) AllNodesSatelliteEstimations(ctx context.Context, satelliteID storj.NodeID) (_ int64, err error)
- func (service *Service) GetAllNodesAllTimeEarned(ctx context.Context) (earned int64, err error)
- func (service *Service) GetAllNodesEarnedOnSatellite(ctx context.Context) (earned []SatelliteSummary, err error)
- func (service *Service) NodesPeriodSummary(ctx context.Context, period string) (_ Summary, err error)
- func (service *Service) NodesSummary(ctx context.Context) (_ Summary, err error)
- type Summary
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Error is an error class for payouts service error. Error = errs.Class("payouts") )
Functions ¶
This section is empty.
Types ¶
type NodeSummary ¶ added in v1.30.1
type NodeSummary struct { NodeID storj.NodeID `json:"nodeId"` Held int64 `json:"held"` Paid int64 `json:"paid"` }
NodeSummary contains node's payout information.
type SatelliteSummary ¶
type SatelliteSummary struct { SatelliteID storj.NodeID `json:"satelliteID"` Earned int64 `json:"earned"` }
SatelliteSummary contains satellite id and earned amount.
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service exposes all payouts related logic.
architecture: Service
func NewService ¶
NewService creates new instance of Service.
func (*Service) AllNodesEstimations ¶ added in v1.30.1
AllNodesEstimations returns all satellites all time estimated earnings.
func (*Service) AllNodesSatelliteEstimations ¶ added in v1.30.1
func (service *Service) AllNodesSatelliteEstimations(ctx context.Context, satelliteID storj.NodeID) (_ int64, err error)
AllNodesSatelliteEstimations returns specific satellite all time estimated earnings.
func (*Service) GetAllNodesAllTimeEarned ¶
GetAllNodesAllTimeEarned retrieves all nodes earned amount for all time.
func (*Service) GetAllNodesEarnedOnSatellite ¶
func (service *Service) GetAllNodesEarnedOnSatellite(ctx context.Context) (earned []SatelliteSummary, err error)
GetAllNodesEarnedOnSatellite retrieves all nodes earned amount for all time per satellite.
Click to show internal directories.
Click to hide internal directories.