pricing

package
v1.24.0-rc Latest Latest
Warning

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

Go to latest
Published: Feb 18, 2021 License: AGPL-3.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DB

type DB interface {
	// Store inserts or updates pricing model into the DB.
	Store(ctx context.Context, stats Pricing) error
	// Get retrieves pricing model for specific satellite.
	Get(ctx context.Context, satelliteID storj.NodeID) (*Pricing, error)
}

DB works with pricing database.

architecture: Database

type Pricing

type Pricing struct {
	SatelliteID     storj.NodeID `json:"satelliteID"`
	EgressBandwidth int64        `json:"egressBandwidth"`
	RepairBandwidth int64        `json:"repairBandwidth"`
	AuditBandwidth  int64        `json:"auditBandwidth"`
	DiskSpace       int64        `json:"diskSpace"`
}

Pricing consist pricing model for storagenode.

Jump to

Keyboard shortcuts

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