paymentsconfig

package
v1.42.1-rc Latest Latest
Warning

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

Go to latest
Published: Oct 29, 2021 License: AGPL-3.0 Imports: 1 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Provider                 string `help:"payments provider to use" default:""`
	StripeCoinPayments       stripecoinpayments.Config
	StorageTBPrice           string `help:"price user should pay for storing TB per month" default:"4" testDefault:"10"`
	EgressTBPrice            string `help:"price user should pay for each TB of egress" default:"7" testDefault:"45"`
	SegmentPrice             string `help:"price user should pay for each segment stored in network per month" default:"0" testDefault:"0.0000022"`
	BonusRate                int64  `help:"amount of percents that user will earn as bonus credits by depositing in STORJ tokens" default:"10"`
	NodeEgressBandwidthPrice int64  `help:"price node receive for storing TB of egress in cents" default:"2000"`
	NodeRepairBandwidthPrice int64  `help:"price node receive for storing TB of repair in cents" default:"1000"`
	NodeAuditBandwidthPrice  int64  `help:"price node receive for storing TB of audit in cents" default:"1000"`
	NodeDiskSpacePrice       int64  `help:"price node receive for storing disk space in cents/TB" default:"150"`
}

Config defines global payments config.

type PricingValues added in v1.27.5

type PricingValues struct {
	StorageTBPrice string
	EgressTBPrice  string
	SegmentPrice   string
}

PricingValues holds pricing model for satellite.

Jump to

Keyboard shortcuts

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