multinode

package
v1.31.0-rc Latest Latest
Warning

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

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

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BandwidthEndpoint

type BandwidthEndpoint struct {
	multinodepb.DRPCBandwidthUnimplementedServer
	// contains filtered or unexported fields
}

BandwidthEndpoint implements multinode bandwidth endpoint.

architecture: Endpoint

func NewBandwidthEndpoint

func NewBandwidthEndpoint(log *zap.Logger, apiKeys *apikeys.Service, db bandwidth.DB) *BandwidthEndpoint

NewBandwidthEndpoint creates new multinode bandwidth endpoint.

func (*BandwidthEndpoint) MonthSummary

MonthSummary returns bandwidth used current month.

type NodeEndpoint

type NodeEndpoint struct {
	multinodepb.DRPCNodeUnimplementedServer
	// contains filtered or unexported fields
}

NodeEndpoint implements multinode node endpoint.

architecture: Endpoint

func NewNodeEndpoint

func NewNodeEndpoint(log *zap.Logger, apiKeys *apikeys.Service, version version.Info, contact *contact.PingStats, reputation reputation.DB, trust *trust.Pool) *NodeEndpoint

NewNodeEndpoint creates new multinode node endpoint.

func (*NodeEndpoint) LastContact

LastContact returns timestamp when node was last in contact with satellite.

func (*NodeEndpoint) Reputation

Reputation returns reputation for specific satellite.

func (*NodeEndpoint) TrustedSatellites added in v1.21.1

TrustedSatellites returns list of trusted satellites node urls.

func (*NodeEndpoint) Version

Version returns node current version.

type PayoutEndpoint added in v1.21.1

type PayoutEndpoint struct {
	multinodepb.DRPCPayoutUnimplementedServer
	// contains filtered or unexported fields
}

PayoutEndpoint implements multinode payouts endpoint.

architecture: Endpoint

func NewPayoutEndpoint added in v1.21.1

func NewPayoutEndpoint(log *zap.Logger, apiKeys *apikeys.Service, estimatedPayouts *estimatedpayouts.Service, db payouts.DB) *PayoutEndpoint

NewPayoutEndpoint creates new multinode payouts endpoint.

func (*PayoutEndpoint) AllSatellitesPeriodSummary added in v1.30.1

AllSatellitesPeriodSummary returns all satellites period payout summary.

func (*PayoutEndpoint) AllSatellitesSummary added in v1.30.1

AllSatellitesSummary returns all satellites all time payout summary.

func (*PayoutEndpoint) Earned added in v1.21.1

Earned returns total earned amount.

func (*PayoutEndpoint) EarnedPerSatellite added in v1.24.2

EarnedPerSatellite returns total earned amount per satellite.

func (*PayoutEndpoint) EstimatedPayoutSatellite added in v1.30.1

EstimatedPayoutSatellite returns estimated earnings for current month from specific satellite.

func (*PayoutEndpoint) EstimatedPayoutTotal added in v1.30.1

EstimatedPayoutTotal returns estimated earnings for current month from all satellites.

func (*PayoutEndpoint) Paystub added in v1.31.1

Paystub returns summed amounts of all values from paystubs from all satellites.

func (*PayoutEndpoint) PeriodPaystub added in v1.31.1

PeriodPaystub returns summed amounts of all values from paystubs from all satellites for specific period.

func (*PayoutEndpoint) SatellitePaystub added in v1.31.1

SatellitePaystub returns summed amounts of all values from paystubs from all satellites.

func (*PayoutEndpoint) SatellitePeriodPaystub added in v1.31.1

SatellitePeriodPaystub returns summed amounts of all values from paystubs from all satellites for specific period.

func (*PayoutEndpoint) SatellitePeriodSummary added in v1.31.1

SatellitePeriodSummary returns satellite period payout summary.

func (*PayoutEndpoint) SatelliteSummary added in v1.31.1

SatelliteSummary returns satellite all time payout summary.

func (*PayoutEndpoint) Undistributed added in v1.31.1

Undistributed returns total undistributed amount.

type StorageEndpoint

type StorageEndpoint struct {
	multinodepb.DRPCStorageUnimplementedServer
	// contains filtered or unexported fields
}

StorageEndpoint implements multinode storage endpoint.

architecture: Endpoint

func NewStorageEndpoint

func NewStorageEndpoint(log *zap.Logger, apiKeys *apikeys.Service, monitor *monitor.Service) *StorageEndpoint

NewStorageEndpoint creates new multinode storage endpoint.

func (*StorageEndpoint) DiskSpace

DiskSpace returns disk space state.

Jump to

Keyboard shortcuts

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