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.
Click to show internal directories.
Click to hide internal directories.