Documentation
¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FixedPricer ¶
type FixedPricer struct {
// contains filtered or unexported fields
}
FixedPricer is a Pricer that has a fixed price for chunks.
func NewFixedPricer ¶
func NewFixedPricer(overlay cluster.Address, poPrice uint64) *FixedPricer
NewFixedPricer returns a new FixedPricer with a given price.
type Interface ¶
type Interface interface {
// PeerPrice is the price the peer charges for a given chunk hash.
PeerPrice(peer, chunk cluster.Address) uint64
// Price is the price we charge for a given chunk hash.
Price(chunk cluster.Address) uint64
}
Pricer returns pricing information for chunk hashes.
Click to show internal directories.
Click to hide internal directories.