Documentation ¶
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Service ¶
type Service struct {
// contains filtered or unexported fields
}
Service is the status service.
func NewService ¶
func NewService( logger log.Logger, streamer p2p.Streamer, topology topologyDriver, beeMode string, chainState postage.ChainStateGetter, reserve Reserve, ) *Service
NewService creates a new status service.
func (*Service) LocalSnapshot ¶
LocalSnapshot returns the current status snapshot of this node.
func (*Service) PeerSnapshot ¶
PeerSnapshot sends request for status snapshot to the peer.
func (*Service) Protocol ¶
func (s *Service) Protocol() p2p.ProtocolSpec
Protocol returns the protocol specification.
func (*Service) SetSync ¶
func (s *Service) SetSync(sync SyncReporter)
type SyncReporter ¶
type SyncReporter interface {
SyncRate() float64
}
SyncReporter defines the interface to report syncing rate.
Click to show internal directories.
Click to hide internal directories.