Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
View Source
var ( // Error is an error class for payouts service error. Error = errs.Class("payouts service error") )
Functions ¶
This section is empty.
Types ¶
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) 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.