reputation

package
v0.0.0-...-7a4b066 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Aug 3, 2021 License: Apache-2.0 Imports: 0 Imported by: 0

Documentation

Overview

Package reputation - location for reputation record structs.

Index

Constants

This section is empty.

Variables

View Source
var ContentRetrieved = Record{
	// contains filtered or unexported fields
}
View Source
var DHTOfferRetrieved = Record{
	// contains filtered or unexported fields
}
View Source
var InvalidRefund = Record{
	// contains filtered or unexported fields
}
View Source
var InvalidResponseAfterPayment = Record{
	// contains filtered or unexported fields
}
View Source
var MockBadRecord = Record{
	// contains filtered or unexported fields
}
View Source
var MockGoodRecord = Record{
	// contains filtered or unexported fields
}

A list of global variables representing list records.

View Source
var NetworkErrorAfterPayment = Record{
	// contains filtered or unexported fields
}
View Source
var NodeDeregistering = Record{
	// contains filtered or unexported fields
}
View Source
var StandardOfferRetrieved = Record{
	// contains filtered or unexported fields
}

Functions

This section is empty.

Types

type Record

type Record struct {
	// contains filtered or unexported fields
}

Record represents an event that will affect peer's reputation.

func (*Record) Copy

func (r *Record) Copy() *Record

Copy gets a copy of this record.

func (*Record) Point

func (r *Record) Point() int64

Point gets the point update of this record.

func (*Record) Reason

func (r *Record) Reason() string

Reason gets the reason of this record.

func (*Record) Violation

func (r *Record) Violation() bool

Violation gets whether this record is a violation.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL