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 penguin.Address, poPrice uint64) *FixedPricer
NewFixedPricer returns a new FixedPricer with a given price.
func (*FixedPricer) MostExpensive ¶
func (pricer *FixedPricer) MostExpensive() *big.Int
type Interface ¶
type Interface interface { // PeerPrice is the price the peer charges for a given chunk hash. PeerPrice(peer, chunk penguin.Address) uint64 // Price is the price we charge for a given chunk hash. Price(chunk penguin.Address) uint64 }
Pricer returns pricing information for chunk hashes.
Click to show internal directories.
Click to hide internal directories.