Documentation ¶
Overview ¶
Package mock_disco is a generated GoMock package.
Package mock_disco is a generated GoMock package.
Package mock_disco is a generated GoMock package.
Index ¶
- type MockDiscoPeer
- type MockDiscoPeerEndpoint
- func (m *MockDiscoPeerEndpoint) Close() error
- func (m *MockDiscoPeerEndpoint) EXPECT() *MockDiscoPeerEndpointMockRecorder
- func (m *MockDiscoPeerEndpoint) Endpoint() netip.AddrPort
- func (m *MockDiscoPeerEndpoint) EnqueueReceivedPacket(pkt disco.DiscoPacket)
- func (m *MockDiscoPeerEndpoint) ReceivePing()
- func (m *MockDiscoPeerEndpoint) SetPriority(priority ticker.Priority)
- func (m *MockDiscoPeerEndpoint) Status() disco.DiscoPeerEndpointStatus
- type MockDiscoPeerEndpointMockRecorder
- func (mr *MockDiscoPeerEndpointMockRecorder) Close() *gomock.Call
- func (mr *MockDiscoPeerEndpointMockRecorder) Endpoint() *gomock.Call
- func (mr *MockDiscoPeerEndpointMockRecorder) EnqueueReceivedPacket(pkt interface{}) *gomock.Call
- func (mr *MockDiscoPeerEndpointMockRecorder) ReceivePing() *gomock.Call
- func (mr *MockDiscoPeerEndpointMockRecorder) SetPriority(priority interface{}) *gomock.Call
- func (mr *MockDiscoPeerEndpointMockRecorder) Status() *gomock.Call
- type MockDiscoPeerEndpointStatus
- type MockDiscoPeerEndpointStatusMockRecorder
- type MockDiscoPeerMockRecorder
- type MockDiscoPeerStatus
- type MockDiscoPeerStatusMockRecorder
- type MockSender
- type MockSenderMockRecorder
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockDiscoPeer ¶
type MockDiscoPeer struct {
// contains filtered or unexported fields
}
MockDiscoPeer is a mock of DiscoPeer interface.
func NewMockDiscoPeer ¶
func NewMockDiscoPeer(ctrl *gomock.Controller) *MockDiscoPeer
NewMockDiscoPeer creates a new mock instance.
func (*MockDiscoPeer) EXPECT ¶
func (m *MockDiscoPeer) EXPECT() *MockDiscoPeerMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDiscoPeer) EnqueueReceivedPacket ¶
func (m *MockDiscoPeer) EnqueueReceivedPacket(pkt disco.EncryptedDiscoPacket)
EnqueueReceivedPacket mocks base method.
func (*MockDiscoPeer) SetEndpoints ¶
func (m *MockDiscoPeer) SetEndpoints(endpoints []netip.AddrPort)
SetEndpoints mocks base method.
func (*MockDiscoPeer) Status ¶
func (m *MockDiscoPeer) Status() disco.DiscoPeerStatus
Status mocks base method.
type MockDiscoPeerEndpoint ¶
type MockDiscoPeerEndpoint struct {
// contains filtered or unexported fields
}
MockDiscoPeerEndpoint is a mock of DiscoPeerEndpoint interface.
func NewMockDiscoPeerEndpoint ¶
func NewMockDiscoPeerEndpoint(ctrl *gomock.Controller) *MockDiscoPeerEndpoint
NewMockDiscoPeerEndpoint creates a new mock instance.
func (*MockDiscoPeerEndpoint) Close ¶
func (m *MockDiscoPeerEndpoint) Close() error
Close mocks base method.
func (*MockDiscoPeerEndpoint) EXPECT ¶
func (m *MockDiscoPeerEndpoint) EXPECT() *MockDiscoPeerEndpointMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDiscoPeerEndpoint) Endpoint ¶
func (m *MockDiscoPeerEndpoint) Endpoint() netip.AddrPort
Endpoint mocks base method.
func (*MockDiscoPeerEndpoint) EnqueueReceivedPacket ¶
func (m *MockDiscoPeerEndpoint) EnqueueReceivedPacket(pkt disco.DiscoPacket)
EnqueueReceivedPacket mocks base method.
func (*MockDiscoPeerEndpoint) ReceivePing ¶
func (m *MockDiscoPeerEndpoint) ReceivePing()
ReceivePing mocks base method.
func (*MockDiscoPeerEndpoint) SetPriority ¶
func (m *MockDiscoPeerEndpoint) SetPriority(priority ticker.Priority)
SetPriority mocks base method.
func (*MockDiscoPeerEndpoint) Status ¶
func (m *MockDiscoPeerEndpoint) Status() disco.DiscoPeerEndpointStatus
Status mocks base method.
type MockDiscoPeerEndpointMockRecorder ¶
type MockDiscoPeerEndpointMockRecorder struct {
// contains filtered or unexported fields
}
MockDiscoPeerEndpointMockRecorder is the mock recorder for MockDiscoPeerEndpoint.
func (*MockDiscoPeerEndpointMockRecorder) Close ¶
func (mr *MockDiscoPeerEndpointMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockDiscoPeerEndpointMockRecorder) Endpoint ¶
func (mr *MockDiscoPeerEndpointMockRecorder) Endpoint() *gomock.Call
Endpoint indicates an expected call of Endpoint.
func (*MockDiscoPeerEndpointMockRecorder) EnqueueReceivedPacket ¶
func (mr *MockDiscoPeerEndpointMockRecorder) EnqueueReceivedPacket(pkt interface{}) *gomock.Call
EnqueueReceivedPacket indicates an expected call of EnqueueReceivedPacket.
func (*MockDiscoPeerEndpointMockRecorder) ReceivePing ¶
func (mr *MockDiscoPeerEndpointMockRecorder) ReceivePing() *gomock.Call
ReceivePing indicates an expected call of ReceivePing.
func (*MockDiscoPeerEndpointMockRecorder) SetPriority ¶
func (mr *MockDiscoPeerEndpointMockRecorder) SetPriority(priority interface{}) *gomock.Call
SetPriority indicates an expected call of SetPriority.
func (*MockDiscoPeerEndpointMockRecorder) Status ¶
func (mr *MockDiscoPeerEndpointMockRecorder) Status() *gomock.Call
Status indicates an expected call of Status.
type MockDiscoPeerEndpointStatus ¶
type MockDiscoPeerEndpointStatus struct {
// contains filtered or unexported fields
}
MockDiscoPeerEndpointStatus is a mock of DiscoPeerEndpointStatus interface.
func NewMockDiscoPeerEndpointStatus ¶
func NewMockDiscoPeerEndpointStatus(ctrl *gomock.Controller) *MockDiscoPeerEndpointStatus
NewMockDiscoPeerEndpointStatus creates a new mock instance.
func (*MockDiscoPeerEndpointStatus) EXPECT ¶
func (m *MockDiscoPeerEndpointStatus) EXPECT() *MockDiscoPeerEndpointStatusMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDiscoPeerEndpointStatus) NotifyStatus ¶
func (m *MockDiscoPeerEndpointStatus) NotifyStatus(fn func(disco.DiscoPeerEndpointStatusReadOnly))
NotifyStatus mocks base method.
type MockDiscoPeerEndpointStatusMockRecorder ¶
type MockDiscoPeerEndpointStatusMockRecorder struct {
// contains filtered or unexported fields
}
MockDiscoPeerEndpointStatusMockRecorder is the mock recorder for MockDiscoPeerEndpointStatus.
func (*MockDiscoPeerEndpointStatusMockRecorder) NotifyStatus ¶
func (mr *MockDiscoPeerEndpointStatusMockRecorder) NotifyStatus(fn interface{}) *gomock.Call
NotifyStatus indicates an expected call of NotifyStatus.
type MockDiscoPeerMockRecorder ¶
type MockDiscoPeerMockRecorder struct {
// contains filtered or unexported fields
}
MockDiscoPeerMockRecorder is the mock recorder for MockDiscoPeer.
func (*MockDiscoPeerMockRecorder) Close ¶
func (mr *MockDiscoPeerMockRecorder) Close() *gomock.Call
Close indicates an expected call of Close.
func (*MockDiscoPeerMockRecorder) EnqueueReceivedPacket ¶
func (mr *MockDiscoPeerMockRecorder) EnqueueReceivedPacket(pkt interface{}) *gomock.Call
EnqueueReceivedPacket indicates an expected call of EnqueueReceivedPacket.
func (*MockDiscoPeerMockRecorder) SetEndpoints ¶
func (mr *MockDiscoPeerMockRecorder) SetEndpoints(endpoints interface{}) *gomock.Call
SetEndpoints indicates an expected call of SetEndpoints.
func (*MockDiscoPeerMockRecorder) Status ¶
func (mr *MockDiscoPeerMockRecorder) Status() *gomock.Call
Status indicates an expected call of Status.
type MockDiscoPeerStatus ¶
type MockDiscoPeerStatus struct {
// contains filtered or unexported fields
}
MockDiscoPeerStatus is a mock of DiscoPeerStatus interface.
func NewMockDiscoPeerStatus ¶
func NewMockDiscoPeerStatus(ctrl *gomock.Controller) *MockDiscoPeerStatus
NewMockDiscoPeerStatus creates a new mock instance.
func (*MockDiscoPeerStatus) EXPECT ¶
func (m *MockDiscoPeerStatus) EXPECT() *MockDiscoPeerStatusMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDiscoPeerStatus) Get ¶
func (m *MockDiscoPeerStatus) Get() disco.DiscoPeerStatusReadOnly
Get mocks base method.
func (*MockDiscoPeerStatus) NotifyStatus ¶
func (m *MockDiscoPeerStatus) NotifyStatus(fn func(disco.DiscoPeerStatusReadOnly))
NotifyStatus mocks base method.
type MockDiscoPeerStatusMockRecorder ¶
type MockDiscoPeerStatusMockRecorder struct {
// contains filtered or unexported fields
}
MockDiscoPeerStatusMockRecorder is the mock recorder for MockDiscoPeerStatus.
func (*MockDiscoPeerStatusMockRecorder) Get ¶
func (mr *MockDiscoPeerStatusMockRecorder) Get() *gomock.Call
Get indicates an expected call of Get.
func (*MockDiscoPeerStatusMockRecorder) NotifyStatus ¶
func (mr *MockDiscoPeerStatusMockRecorder) NotifyStatus(fn interface{}) *gomock.Call
NotifyStatus indicates an expected call of NotifyStatus.
type MockSender ¶
type MockSender struct {
// contains filtered or unexported fields
}
MockSender is a mock of Sender interface.
func NewMockSender ¶
func NewMockSender(ctrl *gomock.Controller) *MockSender
NewMockSender creates a new mock instance.
func (*MockSender) EXPECT ¶
func (m *MockSender) EXPECT() *MockSenderMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockSender) Send ¶
func (m *MockSender) Send(pkt *disco.EncryptedDiscoPacket)
Send mocks base method.
type MockSenderMockRecorder ¶
type MockSenderMockRecorder struct {
// contains filtered or unexported fields
}
MockSenderMockRecorder is the mock recorder for MockSender.
func (*MockSenderMockRecorder) Send ¶
func (mr *MockSenderMockRecorder) Send(pkt interface{}) *gomock.Call
Send indicates an expected call of Send.