Documentation ¶
Index ¶
- type MisbehaviorReportOpt
- type SpamRecordCache
- func (_m *SpamRecordCache) AdjustWithInit(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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
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 interface { mock.TestingT Cleanup(func()) }) *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. The first argument is typically a *testing.T value.
func (*SpamRecordCache) AdjustWithInit ¶ added in v0.33.1
func (_m *SpamRecordCache) AdjustWithInit(originId flow.Identifier, adjustFunc model.RecordAdjustFunc) (float64, error)
AdjustWithInit 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: