Documentation ¶
Overview ¶
Package pushsync provides the pushsync protocol implementation.
Index ¶
Constants ¶
This section is empty.
Variables ¶
Functions ¶
This section is empty.
Types ¶
type PushSync ¶
type PushSync struct {
// contains filtered or unexported fields
}
func New ¶
func New( address swarm.Address, networkID uint64, nonce []byte, streamer p2p.StreamerDisconnecter, store Storer, radius func() (uint8, error), topology topology.Driver, fullNode bool, unwrap func(swarm.Chunk), gsocHandler func(*soc.SOC), validStamp postage.ValidStampFn, logger log.Logger, accounting accounting.Interface, pricer pricer.Interface, signer crypto.Signer, tracer *tracing.Tracer, warmupTime time.Duration, ) *PushSync
func (*PushSync) Metrics ¶
func (s *PushSync) Metrics() []prometheus.Collector
func (*PushSync) Protocol ¶
func (s *PushSync) Protocol() p2p.ProtocolSpec
func (*PushSync) PushChunkToClosest ¶
PushChunkToClosest sends chunk to the closest peer by opening a stream. It then waits for a receipt from that peer and returns error or nil based on the receiving and the validity of the receipt.
type PushSyncer ¶
Click to show internal directories.
Click to hide internal directories.