Documentation ¶
Index ¶
- type MisbehaviorReportOpt
- type SpamRecordCache
- func (_m *SpamRecordCache) Adjust(originId flow.Identifier, adjustFunc model.RecordAdjustFunc) (float64, error)
- func (_m *SpamRecordCache) Get(originId flow.Identifier) (*model.ProtocolSpamRecord, bool)
- func (_m *SpamRecordCache) Identities() []flow.Identifier
- func (_m *SpamRecordCache) Remove(originId flow.Identifier) bool
- func (_m *SpamRecordCache) Size() uint
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MisbehaviorReportOpt ¶
MisbehaviorReportOpt is an autogenerated mock type for the MisbehaviorReportOpt type
func NewMisbehaviorReportOpt ¶
func NewMisbehaviorReportOpt(t mockConstructorTestingTNewMisbehaviorReportOpt) *MisbehaviorReportOpt
NewMisbehaviorReportOpt creates a new instance of MisbehaviorReportOpt. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*MisbehaviorReportOpt) Execute ¶
func (_m *MisbehaviorReportOpt) Execute(r *alsp.MisbehaviorReport) error
Execute provides a mock function with given fields: r
type SpamRecordCache ¶
SpamRecordCache is an autogenerated mock type for the SpamRecordCache type
func NewSpamRecordCache ¶
func NewSpamRecordCache(t mockConstructorTestingTNewSpamRecordCache) *SpamRecordCache
NewSpamRecordCache creates a new instance of SpamRecordCache. It also registers a testing interface on the mock and a cleanup function to assert the mocks expectations.
func (*SpamRecordCache) Adjust ¶
func (_m *SpamRecordCache) Adjust(originId flow.Identifier, adjustFunc model.RecordAdjustFunc) (float64, error)
Adjust provides a mock function with given fields: originId, adjustFunc
func (*SpamRecordCache) Get ¶
func (_m *SpamRecordCache) Get(originId flow.Identifier) (*model.ProtocolSpamRecord, bool)
Get provides a mock function with given fields: originId
func (*SpamRecordCache) Identities ¶
func (_m *SpamRecordCache) Identities() []flow.Identifier
Identities provides a mock function with given fields:
func (*SpamRecordCache) Remove ¶
func (_m *SpamRecordCache) Remove(originId flow.Identifier) bool
Remove provides a mock function with given fields: originId
func (*SpamRecordCache) Size ¶
func (_m *SpamRecordCache) Size() uint
Size provides a mock function with given fields: