Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Interface ¶
type Interface interface {
AnnouncePaymentThreshold(ctx context.Context, peer boson.Address, paymentThreshold *big.Int) error
}
Interface is the main interface of the pricing protocol
type PaymentThresholdObserver ¶
type PaymentThresholdObserver interface {
NotifyPaymentThreshold(peer boson.Address, paymentThreshold *big.Int) error
}
PaymentThresholdObserver is used for being notified of payment threshold updates
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
func (*Service) AnnouncePaymentThreshold ¶
func (s *Service) AnnouncePaymentThreshold(ctx context.Context, peer boson.Address, paymentThreshold *big.Int) error
AnnouncePaymentThreshold announces the payment threshold to per
func (*Service) Protocol ¶
func (s *Service) Protocol() p2p.ProtocolSpec
func (*Service) SetPaymentThresholdObserver ¶
func (s *Service) SetPaymentThresholdObserver(observer PaymentThresholdObserver)
SetPaymentThresholdObserver sets the PaymentThresholdObserver to be used when receiving a new payment threshold
Click to show internal directories.
Click to hide internal directories.