Home
last modified time | relevance | path

Searched defs:PeerScoreParams (Results 1 – 3 of 3) sorted by relevance

/dports/net-im/dendrite/dendrite-0.5.1/vendor/github.com/libp2p/go-libp2p-pubsub/
H A Dscore_params.go52 type PeerScoreParams struct { struct
54 Topics map[string]*TopicScoreParams
58 TopicScoreCap float64
61 AppSpecificScore func(p peer.ID) float64
62 AppSpecificWeight float64
72 IPColocationFactorWeight float64
73 IPColocationFactorThreshold int
85 BehaviourPenaltyWeight, BehaviourPenaltyThreshold, BehaviourPenaltyDecay float64
88 DecayInterval time.Duration
91 DecayToZero float64
[all …]
H A Dscore.go175 func newPeerScore(params *PeerScoreParams) *peerScore {
H A Dgossipsub.go205 func WithPeerScore(params *PeerScoreParams, thresholds *PeerScoreThresholds) Option {