peerinfo

package
v1.7.0-citest.0-nomain Latest Latest
Warning

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

Go to latest
Published: Aug 16, 2024 License: MIT Imports: 5 Imported by: 0

Documentation

Overview

Package peerinfo is a generated GoMock package.

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type MockPeerInfo

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

MockPeerInfo is a mock of PeerInfo interface.

func NewMockPeerInfo

func NewMockPeerInfo(ctrl *gomock.Controller) *MockPeerInfo

NewMockPeerInfo creates a new mock instance.

func (*MockPeerInfo) EXPECT

EXPECT returns an object that allows the caller to indicate expected use.

func (*MockPeerInfo) EnsurePeerInfo

func (m *MockPeerInfo) EnsurePeerInfo(p peer.ID) *peerinfo.Info

EnsurePeerInfo mocks base method.

func (*MockPeerInfo) EnsureProtoStats

func (m *MockPeerInfo) EnsureProtoStats(proto protocol.ID) *peerinfo.DataStats

EnsureProtoStats mocks base method.

func (*MockPeerInfo) Protocols

func (m *MockPeerInfo) Protocols() []protocol.ID

Protocols mocks base method.

func (*MockPeerInfo) RecordReceived

func (m *MockPeerInfo) RecordReceived(n int64, proto protocol.ID, p peer.ID)

RecordReceived mocks base method.

func (*MockPeerInfo) RecordSent

func (m *MockPeerInfo) RecordSent(n int64, proto protocol.ID, p peer.ID)

RecordSent mocks base method.

type MockPeerInfoEnsurePeerInfoCall

type MockPeerInfoEnsurePeerInfoCall struct {
	*gomock.Call
}

MockPeerInfoEnsurePeerInfoCall wrap *gomock.Call

func (*MockPeerInfoEnsurePeerInfoCall) Do

Do rewrite *gomock.Call.Do

func (*MockPeerInfoEnsurePeerInfoCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockPeerInfoEnsurePeerInfoCall) Return

Return rewrite *gomock.Call.Return

type MockPeerInfoEnsureProtoStatsCall

type MockPeerInfoEnsureProtoStatsCall struct {
	*gomock.Call
}

MockPeerInfoEnsureProtoStatsCall wrap *gomock.Call

func (*MockPeerInfoEnsureProtoStatsCall) Do

Do rewrite *gomock.Call.Do

func (*MockPeerInfoEnsureProtoStatsCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockPeerInfoEnsureProtoStatsCall) Return

Return rewrite *gomock.Call.Return

type MockPeerInfoMockRecorder

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

MockPeerInfoMockRecorder is the mock recorder for MockPeerInfo.

func (*MockPeerInfoMockRecorder) EnsurePeerInfo

EnsurePeerInfo indicates an expected call of EnsurePeerInfo.

func (*MockPeerInfoMockRecorder) EnsureProtoStats

func (mr *MockPeerInfoMockRecorder) EnsureProtoStats(proto any) *MockPeerInfoEnsureProtoStatsCall

EnsureProtoStats indicates an expected call of EnsureProtoStats.

func (*MockPeerInfoMockRecorder) Protocols

Protocols indicates an expected call of Protocols.

func (*MockPeerInfoMockRecorder) RecordReceived

func (mr *MockPeerInfoMockRecorder) RecordReceived(n, proto, p any) *MockPeerInfoRecordReceivedCall

RecordReceived indicates an expected call of RecordReceived.

func (*MockPeerInfoMockRecorder) RecordSent

func (mr *MockPeerInfoMockRecorder) RecordSent(n, proto, p any) *MockPeerInfoRecordSentCall

RecordSent indicates an expected call of RecordSent.

type MockPeerInfoProtocolsCall

type MockPeerInfoProtocolsCall struct {
	*gomock.Call
}

MockPeerInfoProtocolsCall wrap *gomock.Call

func (*MockPeerInfoProtocolsCall) Do

Do rewrite *gomock.Call.Do

func (*MockPeerInfoProtocolsCall) DoAndReturn

func (c *MockPeerInfoProtocolsCall) DoAndReturn(f func() []protocol.ID) *MockPeerInfoProtocolsCall

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockPeerInfoProtocolsCall) Return

Return rewrite *gomock.Call.Return

type MockPeerInfoRecordReceivedCall

type MockPeerInfoRecordReceivedCall struct {
	*gomock.Call
}

MockPeerInfoRecordReceivedCall wrap *gomock.Call

func (*MockPeerInfoRecordReceivedCall) Do

Do rewrite *gomock.Call.Do

func (*MockPeerInfoRecordReceivedCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockPeerInfoRecordReceivedCall) Return

Return rewrite *gomock.Call.Return

type MockPeerInfoRecordSentCall

type MockPeerInfoRecordSentCall struct {
	*gomock.Call
}

MockPeerInfoRecordSentCall wrap *gomock.Call

func (*MockPeerInfoRecordSentCall) Do

Do rewrite *gomock.Call.Do

func (*MockPeerInfoRecordSentCall) DoAndReturn

DoAndReturn rewrite *gomock.Call.DoAndReturn

func (*MockPeerInfoRecordSentCall) Return

Return rewrite *gomock.Call.Return

Jump to

Keyboard shortcuts

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