Documentation ¶
Index ¶
- type BandwidthCounter
- func (bwc *BandwidthCounter) GetBandwidthForPeer(p peer.ID) (out Stats)
- func (bwc *BandwidthCounter) GetBandwidthForProtocol(proto protocol.ID) (out Stats)
- func (bwc *BandwidthCounter) GetBandwidthTotals() (out Stats)
- func (bwc *BandwidthCounter) LogRecvMessage(size int64)
- func (bwc *BandwidthCounter) LogRecvMessageStream(size int64, proto protocol.ID, p peer.ID)
- func (bwc *BandwidthCounter) LogSentMessage(size int64)
- func (bwc *BandwidthCounter) LogSentMessageStream(size int64, proto protocol.ID, p peer.ID)
- type MeterCallback
- type Reporter
- type Stats
- type StreamMeterCallback
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type BandwidthCounter ¶
type BandwidthCounter struct {
// contains filtered or unexported fields
}
func NewBandwidthCounter ¶
func NewBandwidthCounter() *BandwidthCounter
func (*BandwidthCounter) GetBandwidthForPeer ¶
func (bwc *BandwidthCounter) GetBandwidthForPeer(p peer.ID) (out Stats)
func (*BandwidthCounter) GetBandwidthForProtocol ¶
func (bwc *BandwidthCounter) GetBandwidthForProtocol(proto protocol.ID) (out Stats)
func (*BandwidthCounter) GetBandwidthTotals ¶
func (bwc *BandwidthCounter) GetBandwidthTotals() (out Stats)
func (*BandwidthCounter) LogRecvMessage ¶
func (bwc *BandwidthCounter) LogRecvMessage(size int64)
func (*BandwidthCounter) LogRecvMessageStream ¶
func (*BandwidthCounter) LogSentMessage ¶
func (bwc *BandwidthCounter) LogSentMessage(size int64)
func (*BandwidthCounter) LogSentMessageStream ¶
type MeterCallback ¶
type MeterCallback func(int64)
Click to show internal directories.
Click to hide internal directories.