payouts

package
v1.25.3-rc-multipart Latest Latest
Warning

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

Go to latest
Published: Mar 16, 2021 License: AGPL-3.0 Imports: 8 Imported by: 0

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

func NewService(log *zap.Logger, dialer rpc.Dialer, nodes nodes.DB) *Service

NewService creates new instance of Service.

func (*Service) GetAllNodesAllTimeEarned

func (service *Service) GetAllNodesAllTimeEarned(ctx context.Context) (earned int64, err error)

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.

Jump to

Keyboard shortcuts

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