Documentation
¶
Overview ¶
Package mocks is a generated GoMock package.
Index ¶
- type HubInterface
- func (_m *HubInterface) CancelPairingWithSKI(ski string)
- func (_m *HubInterface) DisconnectSKI(ski string, reason string)
- func (_m *HubInterface) EXPECT() *HubInterface_Expecter
- func (_m *HubInterface) PairingDetailForSki(ski string) *api.ConnectionStateDetail
- func (_m *HubInterface) RegisterRemoteSKI(ski string)
- func (_m *HubInterface) ServiceForSKI(ski string) *api.ServiceDetails
- func (_m *HubInterface) SetAutoAccept(_a0 bool)
- func (_m *HubInterface) Shutdown()
- func (_m *HubInterface) Start()
- func (_m *HubInterface) UnregisterRemoteSKI(ski string)
- type HubInterface_CancelPairingWithSKI_Call
- func (_c *HubInterface_CancelPairingWithSKI_Call) Return() *HubInterface_CancelPairingWithSKI_Call
- func (_c *HubInterface_CancelPairingWithSKI_Call) Run(run func(ski string)) *HubInterface_CancelPairingWithSKI_Call
- func (_c *HubInterface_CancelPairingWithSKI_Call) RunAndReturn(run func(string)) *HubInterface_CancelPairingWithSKI_Call
- type HubInterface_DisconnectSKI_Call
- func (_c *HubInterface_DisconnectSKI_Call) Return() *HubInterface_DisconnectSKI_Call
- func (_c *HubInterface_DisconnectSKI_Call) Run(run func(ski string, reason string)) *HubInterface_DisconnectSKI_Call
- func (_c *HubInterface_DisconnectSKI_Call) RunAndReturn(run func(string, string)) *HubInterface_DisconnectSKI_Call
- type HubInterface_Expecter
- func (_e *HubInterface_Expecter) CancelPairingWithSKI(ski interface{}) *HubInterface_CancelPairingWithSKI_Call
- func (_e *HubInterface_Expecter) DisconnectSKI(ski interface{}, reason interface{}) *HubInterface_DisconnectSKI_Call
- func (_e *HubInterface_Expecter) PairingDetailForSki(ski interface{}) *HubInterface_PairingDetailForSki_Call
- func (_e *HubInterface_Expecter) RegisterRemoteSKI(ski interface{}) *HubInterface_RegisterRemoteSKI_Call
- func (_e *HubInterface_Expecter) ServiceForSKI(ski interface{}) *HubInterface_ServiceForSKI_Call
- func (_e *HubInterface_Expecter) SetAutoAccept(_a0 interface{}) *HubInterface_SetAutoAccept_Call
- func (_e *HubInterface_Expecter) Shutdown() *HubInterface_Shutdown_Call
- func (_e *HubInterface_Expecter) Start() *HubInterface_Start_Call
- func (_e *HubInterface_Expecter) UnregisterRemoteSKI(ski interface{}) *HubInterface_UnregisterRemoteSKI_Call
- type HubInterface_PairingDetailForSki_Call
- func (_c *HubInterface_PairingDetailForSki_Call) Return(_a0 *api.ConnectionStateDetail) *HubInterface_PairingDetailForSki_Call
- func (_c *HubInterface_PairingDetailForSki_Call) Run(run func(ski string)) *HubInterface_PairingDetailForSki_Call
- func (_c *HubInterface_PairingDetailForSki_Call) RunAndReturn(run func(string) *api.ConnectionStateDetail) *HubInterface_PairingDetailForSki_Call
- type HubInterface_RegisterRemoteSKI_Call
- func (_c *HubInterface_RegisterRemoteSKI_Call) Return() *HubInterface_RegisterRemoteSKI_Call
- func (_c *HubInterface_RegisterRemoteSKI_Call) Run(run func(ski string)) *HubInterface_RegisterRemoteSKI_Call
- func (_c *HubInterface_RegisterRemoteSKI_Call) RunAndReturn(run func(string)) *HubInterface_RegisterRemoteSKI_Call
- type HubInterface_ServiceForSKI_Call
- func (_c *HubInterface_ServiceForSKI_Call) Return(_a0 *api.ServiceDetails) *HubInterface_ServiceForSKI_Call
- func (_c *HubInterface_ServiceForSKI_Call) Run(run func(ski string)) *HubInterface_ServiceForSKI_Call
- func (_c *HubInterface_ServiceForSKI_Call) RunAndReturn(run func(string) *api.ServiceDetails) *HubInterface_ServiceForSKI_Call
- type HubInterface_SetAutoAccept_Call
- type HubInterface_Shutdown_Call
- type HubInterface_Start_Call
- type HubInterface_UnregisterRemoteSKI_Call
- func (_c *HubInterface_UnregisterRemoteSKI_Call) Return() *HubInterface_UnregisterRemoteSKI_Call
- func (_c *HubInterface_UnregisterRemoteSKI_Call) Run(run func(ski string)) *HubInterface_UnregisterRemoteSKI_Call
- func (_c *HubInterface_UnregisterRemoteSKI_Call) RunAndReturn(run func(string)) *HubInterface_UnregisterRemoteSKI_Call
- type HubReaderInterface
- func (_m *HubReaderInterface) AllowWaitingForTrust(ski string) bool
- func (_m *HubReaderInterface) EXPECT() *HubReaderInterface_Expecter
- func (_m *HubReaderInterface) RemoteSKIConnected(ski string)
- func (_m *HubReaderInterface) RemoteSKIDisconnected(ski string)
- func (_m *HubReaderInterface) ServicePairingDetailUpdate(ski string, detail *api.ConnectionStateDetail)
- func (_m *HubReaderInterface) ServiceShipIDUpdate(ski string, shipdID string)
- func (_m *HubReaderInterface) SetupRemoteDevice(ski string, writeI api.ShipConnectionDataWriterInterface) api.ShipConnectionDataReaderInterface
- func (_m *HubReaderInterface) VisibleRemoteServicesUpdated(entries []api.RemoteService)
- type HubReaderInterface_AllowWaitingForTrust_Call
- func (_c *HubReaderInterface_AllowWaitingForTrust_Call) Return(_a0 bool) *HubReaderInterface_AllowWaitingForTrust_Call
- func (_c *HubReaderInterface_AllowWaitingForTrust_Call) Run(run func(ski string)) *HubReaderInterface_AllowWaitingForTrust_Call
- func (_c *HubReaderInterface_AllowWaitingForTrust_Call) RunAndReturn(run func(string) bool) *HubReaderInterface_AllowWaitingForTrust_Call
- type HubReaderInterface_Expecter
- func (_e *HubReaderInterface_Expecter) AllowWaitingForTrust(ski interface{}) *HubReaderInterface_AllowWaitingForTrust_Call
- func (_e *HubReaderInterface_Expecter) RemoteSKIConnected(ski interface{}) *HubReaderInterface_RemoteSKIConnected_Call
- func (_e *HubReaderInterface_Expecter) RemoteSKIDisconnected(ski interface{}) *HubReaderInterface_RemoteSKIDisconnected_Call
- func (_e *HubReaderInterface_Expecter) ServicePairingDetailUpdate(ski interface{}, detail interface{}) *HubReaderInterface_ServicePairingDetailUpdate_Call
- func (_e *HubReaderInterface_Expecter) ServiceShipIDUpdate(ski interface{}, shipdID interface{}) *HubReaderInterface_ServiceShipIDUpdate_Call
- func (_e *HubReaderInterface_Expecter) SetupRemoteDevice(ski interface{}, writeI interface{}) *HubReaderInterface_SetupRemoteDevice_Call
- func (_e *HubReaderInterface_Expecter) VisibleRemoteServicesUpdated(entries interface{}) *HubReaderInterface_VisibleRemoteServicesUpdated_Call
- type HubReaderInterface_RemoteSKIConnected_Call
- func (_c *HubReaderInterface_RemoteSKIConnected_Call) Return() *HubReaderInterface_RemoteSKIConnected_Call
- func (_c *HubReaderInterface_RemoteSKIConnected_Call) Run(run func(ski string)) *HubReaderInterface_RemoteSKIConnected_Call
- func (_c *HubReaderInterface_RemoteSKIConnected_Call) RunAndReturn(run func(string)) *HubReaderInterface_RemoteSKIConnected_Call
- type HubReaderInterface_RemoteSKIDisconnected_Call
- func (_c *HubReaderInterface_RemoteSKIDisconnected_Call) Return() *HubReaderInterface_RemoteSKIDisconnected_Call
- func (_c *HubReaderInterface_RemoteSKIDisconnected_Call) Run(run func(ski string)) *HubReaderInterface_RemoteSKIDisconnected_Call
- func (_c *HubReaderInterface_RemoteSKIDisconnected_Call) RunAndReturn(run func(string)) *HubReaderInterface_RemoteSKIDisconnected_Call
- type HubReaderInterface_ServicePairingDetailUpdate_Call
- func (_c *HubReaderInterface_ServicePairingDetailUpdate_Call) Return() *HubReaderInterface_ServicePairingDetailUpdate_Call
- func (_c *HubReaderInterface_ServicePairingDetailUpdate_Call) Run(run func(ski string, detail *api.ConnectionStateDetail)) *HubReaderInterface_ServicePairingDetailUpdate_Call
- func (_c *HubReaderInterface_ServicePairingDetailUpdate_Call) RunAndReturn(run func(string, *api.ConnectionStateDetail)) *HubReaderInterface_ServicePairingDetailUpdate_Call
- type HubReaderInterface_ServiceShipIDUpdate_Call
- func (_c *HubReaderInterface_ServiceShipIDUpdate_Call) Return() *HubReaderInterface_ServiceShipIDUpdate_Call
- func (_c *HubReaderInterface_ServiceShipIDUpdate_Call) Run(run func(ski string, shipdID string)) *HubReaderInterface_ServiceShipIDUpdate_Call
- func (_c *HubReaderInterface_ServiceShipIDUpdate_Call) RunAndReturn(run func(string, string)) *HubReaderInterface_ServiceShipIDUpdate_Call
- type HubReaderInterface_SetupRemoteDevice_Call
- func (_c *HubReaderInterface_SetupRemoteDevice_Call) Return(_a0 api.ShipConnectionDataReaderInterface) *HubReaderInterface_SetupRemoteDevice_Call
- func (_c *HubReaderInterface_SetupRemoteDevice_Call) Run(run func(ski string, writeI api.ShipConnectionDataWriterInterface)) *HubReaderInterface_SetupRemoteDevice_Call
- func (_c *HubReaderInterface_SetupRemoteDevice_Call) RunAndReturn(...) *HubReaderInterface_SetupRemoteDevice_Call
- type HubReaderInterface_VisibleRemoteServicesUpdated_Call
- func (_c *HubReaderInterface_VisibleRemoteServicesUpdated_Call) Return() *HubReaderInterface_VisibleRemoteServicesUpdated_Call
- func (_c *HubReaderInterface_VisibleRemoteServicesUpdated_Call) Run(run func(entries []api.RemoteService)) *HubReaderInterface_VisibleRemoteServicesUpdated_Call
- func (_c *HubReaderInterface_VisibleRemoteServicesUpdated_Call) RunAndReturn(run func([]api.RemoteService)) *HubReaderInterface_VisibleRemoteServicesUpdated_Call
- type LoggingInterface
- func (_m *LoggingInterface) Debug(args ...interface{})
- func (_m *LoggingInterface) Debugf(format string, args ...interface{})
- func (_m *LoggingInterface) EXPECT() *LoggingInterface_Expecter
- func (_m *LoggingInterface) Error(args ...interface{})
- func (_m *LoggingInterface) Errorf(format string, args ...interface{})
- func (_m *LoggingInterface) Info(args ...interface{})
- func (_m *LoggingInterface) Infof(format string, args ...interface{})
- func (_m *LoggingInterface) Trace(args ...interface{})
- func (_m *LoggingInterface) Tracef(format string, args ...interface{})
- type LoggingInterface_Debug_Call
- type LoggingInterface_Debugf_Call
- func (_c *LoggingInterface_Debugf_Call) Return() *LoggingInterface_Debugf_Call
- func (_c *LoggingInterface_Debugf_Call) Run(run func(format string, args ...interface{})) *LoggingInterface_Debugf_Call
- func (_c *LoggingInterface_Debugf_Call) RunAndReturn(run func(string, ...interface{})) *LoggingInterface_Debugf_Call
- type LoggingInterface_Error_Call
- type LoggingInterface_Errorf_Call
- func (_c *LoggingInterface_Errorf_Call) Return() *LoggingInterface_Errorf_Call
- func (_c *LoggingInterface_Errorf_Call) Run(run func(format string, args ...interface{})) *LoggingInterface_Errorf_Call
- func (_c *LoggingInterface_Errorf_Call) RunAndReturn(run func(string, ...interface{})) *LoggingInterface_Errorf_Call
- type LoggingInterface_Expecter
- func (_e *LoggingInterface_Expecter) Debug(args ...interface{}) *LoggingInterface_Debug_Call
- func (_e *LoggingInterface_Expecter) Debugf(format interface{}, args ...interface{}) *LoggingInterface_Debugf_Call
- func (_e *LoggingInterface_Expecter) Error(args ...interface{}) *LoggingInterface_Error_Call
- func (_e *LoggingInterface_Expecter) Errorf(format interface{}, args ...interface{}) *LoggingInterface_Errorf_Call
- func (_e *LoggingInterface_Expecter) Info(args ...interface{}) *LoggingInterface_Info_Call
- func (_e *LoggingInterface_Expecter) Infof(format interface{}, args ...interface{}) *LoggingInterface_Infof_Call
- func (_e *LoggingInterface_Expecter) Trace(args ...interface{}) *LoggingInterface_Trace_Call
- func (_e *LoggingInterface_Expecter) Tracef(format interface{}, args ...interface{}) *LoggingInterface_Tracef_Call
- type LoggingInterface_Info_Call
- type LoggingInterface_Infof_Call
- func (_c *LoggingInterface_Infof_Call) Return() *LoggingInterface_Infof_Call
- func (_c *LoggingInterface_Infof_Call) Run(run func(format string, args ...interface{})) *LoggingInterface_Infof_Call
- func (_c *LoggingInterface_Infof_Call) RunAndReturn(run func(string, ...interface{})) *LoggingInterface_Infof_Call
- type LoggingInterface_Trace_Call
- type LoggingInterface_Tracef_Call
- func (_c *LoggingInterface_Tracef_Call) Return() *LoggingInterface_Tracef_Call
- func (_c *LoggingInterface_Tracef_Call) Run(run func(format string, args ...interface{})) *LoggingInterface_Tracef_Call
- func (_c *LoggingInterface_Tracef_Call) RunAndReturn(run func(string, ...interface{})) *LoggingInterface_Tracef_Call
- type MdnsInterface
- func (_m *MdnsInterface) AnnounceMdnsEntry() error
- func (_m *MdnsInterface) EXPECT() *MdnsInterface_Expecter
- func (_m *MdnsInterface) RequestMdnsEntries()
- func (_m *MdnsInterface) SetAutoAccept(_a0 bool)
- func (_m *MdnsInterface) Shutdown()
- func (_m *MdnsInterface) Start(cb api.MdnsReportInterface) error
- func (_m *MdnsInterface) UnannounceMdnsEntry()
- type MdnsInterface_AnnounceMdnsEntry_Call
- func (_c *MdnsInterface_AnnounceMdnsEntry_Call) Return(_a0 error) *MdnsInterface_AnnounceMdnsEntry_Call
- func (_c *MdnsInterface_AnnounceMdnsEntry_Call) Run(run func()) *MdnsInterface_AnnounceMdnsEntry_Call
- func (_c *MdnsInterface_AnnounceMdnsEntry_Call) RunAndReturn(run func() error) *MdnsInterface_AnnounceMdnsEntry_Call
- type MdnsInterface_Expecter
- func (_e *MdnsInterface_Expecter) AnnounceMdnsEntry() *MdnsInterface_AnnounceMdnsEntry_Call
- func (_e *MdnsInterface_Expecter) RequestMdnsEntries() *MdnsInterface_RequestMdnsEntries_Call
- func (_e *MdnsInterface_Expecter) SetAutoAccept(_a0 interface{}) *MdnsInterface_SetAutoAccept_Call
- func (_e *MdnsInterface_Expecter) Shutdown() *MdnsInterface_Shutdown_Call
- func (_e *MdnsInterface_Expecter) Start(cb interface{}) *MdnsInterface_Start_Call
- func (_e *MdnsInterface_Expecter) UnannounceMdnsEntry() *MdnsInterface_UnannounceMdnsEntry_Call
- type MdnsInterface_RequestMdnsEntries_Call
- func (_c *MdnsInterface_RequestMdnsEntries_Call) Return() *MdnsInterface_RequestMdnsEntries_Call
- func (_c *MdnsInterface_RequestMdnsEntries_Call) Run(run func()) *MdnsInterface_RequestMdnsEntries_Call
- func (_c *MdnsInterface_RequestMdnsEntries_Call) RunAndReturn(run func()) *MdnsInterface_RequestMdnsEntries_Call
- type MdnsInterface_SetAutoAccept_Call
- type MdnsInterface_Shutdown_Call
- type MdnsInterface_Start_Call
- type MdnsInterface_UnannounceMdnsEntry_Call
- func (_c *MdnsInterface_UnannounceMdnsEntry_Call) Return() *MdnsInterface_UnannounceMdnsEntry_Call
- func (_c *MdnsInterface_UnannounceMdnsEntry_Call) Run(run func()) *MdnsInterface_UnannounceMdnsEntry_Call
- func (_c *MdnsInterface_UnannounceMdnsEntry_Call) RunAndReturn(run func()) *MdnsInterface_UnannounceMdnsEntry_Call
- type MdnsProviderInterface
- func (_m *MdnsProviderInterface) Announce(serviceName string, port int, txt []string) error
- func (_m *MdnsProviderInterface) EXPECT() *MdnsProviderInterface_Expecter
- func (_m *MdnsProviderInterface) Shutdown()
- func (_m *MdnsProviderInterface) Start(autoReconnect bool, cb api.MdnsResolveCB) bool
- func (_m *MdnsProviderInterface) Unannounce()
- type MdnsProviderInterface_Announce_Call
- func (_c *MdnsProviderInterface_Announce_Call) Return(_a0 error) *MdnsProviderInterface_Announce_Call
- func (_c *MdnsProviderInterface_Announce_Call) Run(run func(serviceName string, port int, txt []string)) *MdnsProviderInterface_Announce_Call
- func (_c *MdnsProviderInterface_Announce_Call) RunAndReturn(run func(string, int, []string) error) *MdnsProviderInterface_Announce_Call
- type MdnsProviderInterface_Expecter
- func (_e *MdnsProviderInterface_Expecter) Announce(serviceName interface{}, port interface{}, txt interface{}) *MdnsProviderInterface_Announce_Call
- func (_e *MdnsProviderInterface_Expecter) Shutdown() *MdnsProviderInterface_Shutdown_Call
- func (_e *MdnsProviderInterface_Expecter) Start(autoReconnect interface{}, cb interface{}) *MdnsProviderInterface_Start_Call
- func (_e *MdnsProviderInterface_Expecter) Unannounce() *MdnsProviderInterface_Unannounce_Call
- type MdnsProviderInterface_Shutdown_Call
- func (_c *MdnsProviderInterface_Shutdown_Call) Return() *MdnsProviderInterface_Shutdown_Call
- func (_c *MdnsProviderInterface_Shutdown_Call) Run(run func()) *MdnsProviderInterface_Shutdown_Call
- func (_c *MdnsProviderInterface_Shutdown_Call) RunAndReturn(run func()) *MdnsProviderInterface_Shutdown_Call
- type MdnsProviderInterface_Start_Call
- func (_c *MdnsProviderInterface_Start_Call) Return(_a0 bool) *MdnsProviderInterface_Start_Call
- func (_c *MdnsProviderInterface_Start_Call) Run(run func(autoReconnect bool, cb api.MdnsResolveCB)) *MdnsProviderInterface_Start_Call
- func (_c *MdnsProviderInterface_Start_Call) RunAndReturn(run func(bool, api.MdnsResolveCB) bool) *MdnsProviderInterface_Start_Call
- type MdnsProviderInterface_Unannounce_Call
- func (_c *MdnsProviderInterface_Unannounce_Call) Return() *MdnsProviderInterface_Unannounce_Call
- func (_c *MdnsProviderInterface_Unannounce_Call) Run(run func()) *MdnsProviderInterface_Unannounce_Call
- func (_c *MdnsProviderInterface_Unannounce_Call) RunAndReturn(run func()) *MdnsProviderInterface_Unannounce_Call
- type MdnsReportInterface
- type MdnsReportInterface_Expecter
- type MdnsReportInterface_ReportMdnsEntries_Call
- func (_c *MdnsReportInterface_ReportMdnsEntries_Call) Return() *MdnsReportInterface_ReportMdnsEntries_Call
- func (_c *MdnsReportInterface_ReportMdnsEntries_Call) Run(run func(entries map[string]*api.MdnsEntry, newEntries bool)) *MdnsReportInterface_ReportMdnsEntries_Call
- func (_c *MdnsReportInterface_ReportMdnsEntries_Call) RunAndReturn(run func(map[string]*api.MdnsEntry, bool)) *MdnsReportInterface_ReportMdnsEntries_Call
- type MdnsResolveCB
- type MdnsResolveCB_Execute_Call
- type MdnsResolveCB_Expecter
- type MockHubReaderInterface
- func (m *MockHubReaderInterface) AllowWaitingForTrust(arg0 string) bool
- func (m *MockHubReaderInterface) EXPECT() *MockHubReaderInterfaceMockRecorder
- func (m *MockHubReaderInterface) RemoteSKIConnected(arg0 string)
- func (m *MockHubReaderInterface) RemoteSKIDisconnected(arg0 string)
- func (m *MockHubReaderInterface) ServicePairingDetailUpdate(arg0 string, arg1 *api.ConnectionStateDetail)
- func (m *MockHubReaderInterface) ServiceShipIDUpdate(arg0, arg1 string)
- func (m *MockHubReaderInterface) SetupRemoteDevice(arg0 string, arg1 api.ShipConnectionDataWriterInterface) api.ShipConnectionDataReaderInterface
- func (m *MockHubReaderInterface) VisibleRemoteServicesUpdated(arg0 []api.RemoteService)
- type MockHubReaderInterfaceMockRecorder
- func (mr *MockHubReaderInterfaceMockRecorder) AllowWaitingForTrust(arg0 any) *gomock.Call
- func (mr *MockHubReaderInterfaceMockRecorder) RemoteSKIConnected(arg0 any) *gomock.Call
- func (mr *MockHubReaderInterfaceMockRecorder) RemoteSKIDisconnected(arg0 any) *gomock.Call
- func (mr *MockHubReaderInterfaceMockRecorder) ServicePairingDetailUpdate(arg0, arg1 any) *gomock.Call
- func (mr *MockHubReaderInterfaceMockRecorder) ServiceShipIDUpdate(arg0, arg1 any) *gomock.Call
- func (mr *MockHubReaderInterfaceMockRecorder) SetupRemoteDevice(arg0, arg1 any) *gomock.Call
- func (mr *MockHubReaderInterfaceMockRecorder) VisibleRemoteServicesUpdated(arg0 any) *gomock.Call
- type MockMdnsInterface
- func (m *MockMdnsInterface) AnnounceMdnsEntry() error
- func (m *MockMdnsInterface) EXPECT() *MockMdnsInterfaceMockRecorder
- func (m *MockMdnsInterface) RequestMdnsEntries()
- func (m *MockMdnsInterface) SetAutoAccept(arg0 bool)
- func (m *MockMdnsInterface) Shutdown()
- func (m *MockMdnsInterface) Start(arg0 api.MdnsReportInterface) error
- func (m *MockMdnsInterface) UnannounceMdnsEntry()
- type MockMdnsInterfaceMockRecorder
- func (mr *MockMdnsInterfaceMockRecorder) AnnounceMdnsEntry() *gomock.Call
- func (mr *MockMdnsInterfaceMockRecorder) RequestMdnsEntries() *gomock.Call
- func (mr *MockMdnsInterfaceMockRecorder) SetAutoAccept(arg0 any) *gomock.Call
- func (mr *MockMdnsInterfaceMockRecorder) Shutdown() *gomock.Call
- func (mr *MockMdnsInterfaceMockRecorder) Start(arg0 any) *gomock.Call
- func (mr *MockMdnsInterfaceMockRecorder) UnannounceMdnsEntry() *gomock.Call
- type ShipConnectionDataReaderInterface
- type ShipConnectionDataReaderInterface_Expecter
- type ShipConnectionDataReaderInterface_HandleShipPayloadMessage_Call
- func (_c *ShipConnectionDataReaderInterface_HandleShipPayloadMessage_Call) Return() *ShipConnectionDataReaderInterface_HandleShipPayloadMessage_Call
- func (_c *ShipConnectionDataReaderInterface_HandleShipPayloadMessage_Call) Run(run func(message []byte)) *ShipConnectionDataReaderInterface_HandleShipPayloadMessage_Call
- func (_c *ShipConnectionDataReaderInterface_HandleShipPayloadMessage_Call) RunAndReturn(run func([]byte)) *ShipConnectionDataReaderInterface_HandleShipPayloadMessage_Call
- type ShipConnectionDataWriterInterface
- type ShipConnectionDataWriterInterface_Expecter
- type ShipConnectionDataWriterInterface_WriteShipMessageWithPayload_Call
- func (_c *ShipConnectionDataWriterInterface_WriteShipMessageWithPayload_Call) Return() *ShipConnectionDataWriterInterface_WriteShipMessageWithPayload_Call
- func (_c *ShipConnectionDataWriterInterface_WriteShipMessageWithPayload_Call) Run(run func(message []byte)) *ShipConnectionDataWriterInterface_WriteShipMessageWithPayload_Call
- func (_c *ShipConnectionDataWriterInterface_WriteShipMessageWithPayload_Call) RunAndReturn(run func([]byte)) *ShipConnectionDataWriterInterface_WriteShipMessageWithPayload_Call
- type ShipConnectionInfoProviderInterface
- func (_m *ShipConnectionInfoProviderInterface) AllowWaitingForTrust(_a0 string) bool
- func (_m *ShipConnectionInfoProviderInterface) EXPECT() *ShipConnectionInfoProviderInterface_Expecter
- func (_m *ShipConnectionInfoProviderInterface) HandleConnectionClosed(_a0 api.ShipConnectionInterface, _a1 bool)
- func (_m *ShipConnectionInfoProviderInterface) HandleShipHandshakeStateUpdate(_a0 string, _a1 model.ShipState)
- func (_m *ShipConnectionInfoProviderInterface) IsAutoAcceptEnabled() bool
- func (_m *ShipConnectionInfoProviderInterface) IsRemoteServiceForSKIPaired(_a0 string) bool
- func (_m *ShipConnectionInfoProviderInterface) ReportServiceShipID(_a0 string, _a1 string)
- func (_m *ShipConnectionInfoProviderInterface) SetupRemoteDevice(ski string, writeI api.ShipConnectionDataWriterInterface) api.ShipConnectionDataReaderInterface
- type ShipConnectionInfoProviderInterface_AllowWaitingForTrust_Call
- func (_c *ShipConnectionInfoProviderInterface_AllowWaitingForTrust_Call) Return(_a0 bool) *ShipConnectionInfoProviderInterface_AllowWaitingForTrust_Call
- func (_c *ShipConnectionInfoProviderInterface_AllowWaitingForTrust_Call) Run(run func(_a0 string)) *ShipConnectionInfoProviderInterface_AllowWaitingForTrust_Call
- func (_c *ShipConnectionInfoProviderInterface_AllowWaitingForTrust_Call) RunAndReturn(run func(string) bool) *ShipConnectionInfoProviderInterface_AllowWaitingForTrust_Call
- type ShipConnectionInfoProviderInterface_Expecter
- func (_e *ShipConnectionInfoProviderInterface_Expecter) AllowWaitingForTrust(_a0 interface{}) *ShipConnectionInfoProviderInterface_AllowWaitingForTrust_Call
- func (_e *ShipConnectionInfoProviderInterface_Expecter) HandleConnectionClosed(_a0 interface{}, _a1 interface{}) *ShipConnectionInfoProviderInterface_HandleConnectionClosed_Call
- func (_e *ShipConnectionInfoProviderInterface_Expecter) HandleShipHandshakeStateUpdate(_a0 interface{}, _a1 interface{}) *ShipConnectionInfoProviderInterface_HandleShipHandshakeStateUpdate_Call
- func (_e *ShipConnectionInfoProviderInterface_Expecter) IsAutoAcceptEnabled() *ShipConnectionInfoProviderInterface_IsAutoAcceptEnabled_Call
- func (_e *ShipConnectionInfoProviderInterface_Expecter) IsRemoteServiceForSKIPaired(_a0 interface{}) *ShipConnectionInfoProviderInterface_IsRemoteServiceForSKIPaired_Call
- func (_e *ShipConnectionInfoProviderInterface_Expecter) ReportServiceShipID(_a0 interface{}, _a1 interface{}) *ShipConnectionInfoProviderInterface_ReportServiceShipID_Call
- func (_e *ShipConnectionInfoProviderInterface_Expecter) SetupRemoteDevice(ski interface{}, writeI interface{}) *ShipConnectionInfoProviderInterface_SetupRemoteDevice_Call
- type ShipConnectionInfoProviderInterface_HandleConnectionClosed_Call
- func (_c *ShipConnectionInfoProviderInterface_HandleConnectionClosed_Call) Return() *ShipConnectionInfoProviderInterface_HandleConnectionClosed_Call
- func (_c *ShipConnectionInfoProviderInterface_HandleConnectionClosed_Call) Run(run func(_a0 api.ShipConnectionInterface, _a1 bool)) *ShipConnectionInfoProviderInterface_HandleConnectionClosed_Call
- func (_c *ShipConnectionInfoProviderInterface_HandleConnectionClosed_Call) RunAndReturn(run func(api.ShipConnectionInterface, bool)) *ShipConnectionInfoProviderInterface_HandleConnectionClosed_Call
- type ShipConnectionInfoProviderInterface_HandleShipHandshakeStateUpdate_Call
- func (_c *ShipConnectionInfoProviderInterface_HandleShipHandshakeStateUpdate_Call) Return() *ShipConnectionInfoProviderInterface_HandleShipHandshakeStateUpdate_Call
- func (_c *ShipConnectionInfoProviderInterface_HandleShipHandshakeStateUpdate_Call) Run(run func(_a0 string, _a1 model.ShipState)) *ShipConnectionInfoProviderInterface_HandleShipHandshakeStateUpdate_Call
- func (_c *ShipConnectionInfoProviderInterface_HandleShipHandshakeStateUpdate_Call) RunAndReturn(run func(string, model.ShipState)) *ShipConnectionInfoProviderInterface_HandleShipHandshakeStateUpdate_Call
- type ShipConnectionInfoProviderInterface_IsAutoAcceptEnabled_Call
- func (_c *ShipConnectionInfoProviderInterface_IsAutoAcceptEnabled_Call) Return(_a0 bool) *ShipConnectionInfoProviderInterface_IsAutoAcceptEnabled_Call
- func (_c *ShipConnectionInfoProviderInterface_IsAutoAcceptEnabled_Call) Run(run func()) *ShipConnectionInfoProviderInterface_IsAutoAcceptEnabled_Call
- func (_c *ShipConnectionInfoProviderInterface_IsAutoAcceptEnabled_Call) RunAndReturn(run func() bool) *ShipConnectionInfoProviderInterface_IsAutoAcceptEnabled_Call
- type ShipConnectionInfoProviderInterface_IsRemoteServiceForSKIPaired_Call
- func (_c *ShipConnectionInfoProviderInterface_IsRemoteServiceForSKIPaired_Call) Return(_a0 bool) *ShipConnectionInfoProviderInterface_IsRemoteServiceForSKIPaired_Call
- func (_c *ShipConnectionInfoProviderInterface_IsRemoteServiceForSKIPaired_Call) Run(run func(_a0 string)) *ShipConnectionInfoProviderInterface_IsRemoteServiceForSKIPaired_Call
- func (_c *ShipConnectionInfoProviderInterface_IsRemoteServiceForSKIPaired_Call) RunAndReturn(run func(string) bool) *ShipConnectionInfoProviderInterface_IsRemoteServiceForSKIPaired_Call
- type ShipConnectionInfoProviderInterface_ReportServiceShipID_Call
- func (_c *ShipConnectionInfoProviderInterface_ReportServiceShipID_Call) Return() *ShipConnectionInfoProviderInterface_ReportServiceShipID_Call
- func (_c *ShipConnectionInfoProviderInterface_ReportServiceShipID_Call) Run(run func(_a0 string, _a1 string)) *ShipConnectionInfoProviderInterface_ReportServiceShipID_Call
- func (_c *ShipConnectionInfoProviderInterface_ReportServiceShipID_Call) RunAndReturn(run func(string, string)) *ShipConnectionInfoProviderInterface_ReportServiceShipID_Call
- type ShipConnectionInfoProviderInterface_SetupRemoteDevice_Call
- func (_c *ShipConnectionInfoProviderInterface_SetupRemoteDevice_Call) Return(_a0 api.ShipConnectionDataReaderInterface) *ShipConnectionInfoProviderInterface_SetupRemoteDevice_Call
- func (_c *ShipConnectionInfoProviderInterface_SetupRemoteDevice_Call) Run(run func(ski string, writeI api.ShipConnectionDataWriterInterface)) *ShipConnectionInfoProviderInterface_SetupRemoteDevice_Call
- func (_c *ShipConnectionInfoProviderInterface_SetupRemoteDevice_Call) RunAndReturn(...) *ShipConnectionInfoProviderInterface_SetupRemoteDevice_Call
- type ShipConnectionInterface
- func (_m *ShipConnectionInterface) AbortPendingHandshake()
- func (_m *ShipConnectionInterface) ApprovePendingHandshake()
- func (_m *ShipConnectionInterface) CloseConnection(safe bool, code int, reason string)
- func (_m *ShipConnectionInterface) DataHandler() api.WebsocketDataWriterInterface
- func (_m *ShipConnectionInterface) EXPECT() *ShipConnectionInterface_Expecter
- func (_m *ShipConnectionInterface) RemoteSKI() string
- func (_m *ShipConnectionInterface) ShipHandshakeState() (model.ShipMessageExchangeState, error)
- type ShipConnectionInterface_AbortPendingHandshake_Call
- func (_c *ShipConnectionInterface_AbortPendingHandshake_Call) Return() *ShipConnectionInterface_AbortPendingHandshake_Call
- func (_c *ShipConnectionInterface_AbortPendingHandshake_Call) Run(run func()) *ShipConnectionInterface_AbortPendingHandshake_Call
- func (_c *ShipConnectionInterface_AbortPendingHandshake_Call) RunAndReturn(run func()) *ShipConnectionInterface_AbortPendingHandshake_Call
- type ShipConnectionInterface_ApprovePendingHandshake_Call
- func (_c *ShipConnectionInterface_ApprovePendingHandshake_Call) Return() *ShipConnectionInterface_ApprovePendingHandshake_Call
- func (_c *ShipConnectionInterface_ApprovePendingHandshake_Call) Run(run func()) *ShipConnectionInterface_ApprovePendingHandshake_Call
- func (_c *ShipConnectionInterface_ApprovePendingHandshake_Call) RunAndReturn(run func()) *ShipConnectionInterface_ApprovePendingHandshake_Call
- type ShipConnectionInterface_CloseConnection_Call
- func (_c *ShipConnectionInterface_CloseConnection_Call) Return() *ShipConnectionInterface_CloseConnection_Call
- func (_c *ShipConnectionInterface_CloseConnection_Call) Run(run func(safe bool, code int, reason string)) *ShipConnectionInterface_CloseConnection_Call
- func (_c *ShipConnectionInterface_CloseConnection_Call) RunAndReturn(run func(bool, int, string)) *ShipConnectionInterface_CloseConnection_Call
- type ShipConnectionInterface_DataHandler_Call
- func (_c *ShipConnectionInterface_DataHandler_Call) Return(_a0 api.WebsocketDataWriterInterface) *ShipConnectionInterface_DataHandler_Call
- func (_c *ShipConnectionInterface_DataHandler_Call) Run(run func()) *ShipConnectionInterface_DataHandler_Call
- func (_c *ShipConnectionInterface_DataHandler_Call) RunAndReturn(run func() api.WebsocketDataWriterInterface) *ShipConnectionInterface_DataHandler_Call
- type ShipConnectionInterface_Expecter
- func (_e *ShipConnectionInterface_Expecter) AbortPendingHandshake() *ShipConnectionInterface_AbortPendingHandshake_Call
- func (_e *ShipConnectionInterface_Expecter) ApprovePendingHandshake() *ShipConnectionInterface_ApprovePendingHandshake_Call
- func (_e *ShipConnectionInterface_Expecter) CloseConnection(safe interface{}, code interface{}, reason interface{}) *ShipConnectionInterface_CloseConnection_Call
- func (_e *ShipConnectionInterface_Expecter) DataHandler() *ShipConnectionInterface_DataHandler_Call
- func (_e *ShipConnectionInterface_Expecter) RemoteSKI() *ShipConnectionInterface_RemoteSKI_Call
- func (_e *ShipConnectionInterface_Expecter) ShipHandshakeState() *ShipConnectionInterface_ShipHandshakeState_Call
- type ShipConnectionInterface_RemoteSKI_Call
- func (_c *ShipConnectionInterface_RemoteSKI_Call) Return(_a0 string) *ShipConnectionInterface_RemoteSKI_Call
- func (_c *ShipConnectionInterface_RemoteSKI_Call) Run(run func()) *ShipConnectionInterface_RemoteSKI_Call
- func (_c *ShipConnectionInterface_RemoteSKI_Call) RunAndReturn(run func() string) *ShipConnectionInterface_RemoteSKI_Call
- type ShipConnectionInterface_ShipHandshakeState_Call
- func (_c *ShipConnectionInterface_ShipHandshakeState_Call) Return(_a0 model.ShipMessageExchangeState, _a1 error) *ShipConnectionInterface_ShipHandshakeState_Call
- func (_c *ShipConnectionInterface_ShipHandshakeState_Call) Run(run func()) *ShipConnectionInterface_ShipHandshakeState_Call
- func (_c *ShipConnectionInterface_ShipHandshakeState_Call) RunAndReturn(run func() (model.ShipMessageExchangeState, error)) *ShipConnectionInterface_ShipHandshakeState_Call
- type WebsocketDataReaderInterface
- type WebsocketDataReaderInterface_Expecter
- func (_e *WebsocketDataReaderInterface_Expecter) HandleIncomingWebsocketMessage(_a0 interface{}) *WebsocketDataReaderInterface_HandleIncomingWebsocketMessage_Call
- func (_e *WebsocketDataReaderInterface_Expecter) ReportConnectionError(_a0 interface{}) *WebsocketDataReaderInterface_ReportConnectionError_Call
- type WebsocketDataReaderInterface_HandleIncomingWebsocketMessage_Call
- func (_c *WebsocketDataReaderInterface_HandleIncomingWebsocketMessage_Call) Return() *WebsocketDataReaderInterface_HandleIncomingWebsocketMessage_Call
- func (_c *WebsocketDataReaderInterface_HandleIncomingWebsocketMessage_Call) Run(run func(_a0 []byte)) *WebsocketDataReaderInterface_HandleIncomingWebsocketMessage_Call
- func (_c *WebsocketDataReaderInterface_HandleIncomingWebsocketMessage_Call) RunAndReturn(run func([]byte)) *WebsocketDataReaderInterface_HandleIncomingWebsocketMessage_Call
- type WebsocketDataReaderInterface_ReportConnectionError_Call
- func (_c *WebsocketDataReaderInterface_ReportConnectionError_Call) Return() *WebsocketDataReaderInterface_ReportConnectionError_Call
- func (_c *WebsocketDataReaderInterface_ReportConnectionError_Call) Run(run func(_a0 error)) *WebsocketDataReaderInterface_ReportConnectionError_Call
- func (_c *WebsocketDataReaderInterface_ReportConnectionError_Call) RunAndReturn(run func(error)) *WebsocketDataReaderInterface_ReportConnectionError_Call
- type WebsocketDataWriterInterface
- func (_m *WebsocketDataWriterInterface) CloseDataConnection(closeCode int, reason string)
- func (_m *WebsocketDataWriterInterface) EXPECT() *WebsocketDataWriterInterface_Expecter
- func (_m *WebsocketDataWriterInterface) InitDataProcessing(_a0 api.WebsocketDataReaderInterface)
- func (_m *WebsocketDataWriterInterface) IsDataConnectionClosed() (bool, error)
- func (_m *WebsocketDataWriterInterface) WriteMessageToWebsocketConnection(_a0 []byte) error
- type WebsocketDataWriterInterface_CloseDataConnection_Call
- func (_c *WebsocketDataWriterInterface_CloseDataConnection_Call) Return() *WebsocketDataWriterInterface_CloseDataConnection_Call
- func (_c *WebsocketDataWriterInterface_CloseDataConnection_Call) Run(run func(closeCode int, reason string)) *WebsocketDataWriterInterface_CloseDataConnection_Call
- func (_c *WebsocketDataWriterInterface_CloseDataConnection_Call) RunAndReturn(run func(int, string)) *WebsocketDataWriterInterface_CloseDataConnection_Call
- type WebsocketDataWriterInterface_Expecter
- func (_e *WebsocketDataWriterInterface_Expecter) CloseDataConnection(closeCode interface{}, reason interface{}) *WebsocketDataWriterInterface_CloseDataConnection_Call
- func (_e *WebsocketDataWriterInterface_Expecter) InitDataProcessing(_a0 interface{}) *WebsocketDataWriterInterface_InitDataProcessing_Call
- func (_e *WebsocketDataWriterInterface_Expecter) IsDataConnectionClosed() *WebsocketDataWriterInterface_IsDataConnectionClosed_Call
- func (_e *WebsocketDataWriterInterface_Expecter) WriteMessageToWebsocketConnection(_a0 interface{}) *WebsocketDataWriterInterface_WriteMessageToWebsocketConnection_Call
- type WebsocketDataWriterInterface_InitDataProcessing_Call
- func (_c *WebsocketDataWriterInterface_InitDataProcessing_Call) Return() *WebsocketDataWriterInterface_InitDataProcessing_Call
- func (_c *WebsocketDataWriterInterface_InitDataProcessing_Call) Run(run func(_a0 api.WebsocketDataReaderInterface)) *WebsocketDataWriterInterface_InitDataProcessing_Call
- func (_c *WebsocketDataWriterInterface_InitDataProcessing_Call) RunAndReturn(run func(api.WebsocketDataReaderInterface)) *WebsocketDataWriterInterface_InitDataProcessing_Call
- type WebsocketDataWriterInterface_IsDataConnectionClosed_Call
- func (_c *WebsocketDataWriterInterface_IsDataConnectionClosed_Call) Return(_a0 bool, _a1 error) *WebsocketDataWriterInterface_IsDataConnectionClosed_Call
- func (_c *WebsocketDataWriterInterface_IsDataConnectionClosed_Call) Run(run func()) *WebsocketDataWriterInterface_IsDataConnectionClosed_Call
- func (_c *WebsocketDataWriterInterface_IsDataConnectionClosed_Call) RunAndReturn(run func() (bool, error)) *WebsocketDataWriterInterface_IsDataConnectionClosed_Call
- type WebsocketDataWriterInterface_WriteMessageToWebsocketConnection_Call
- func (_c *WebsocketDataWriterInterface_WriteMessageToWebsocketConnection_Call) Return(_a0 error) *WebsocketDataWriterInterface_WriteMessageToWebsocketConnection_Call
- func (_c *WebsocketDataWriterInterface_WriteMessageToWebsocketConnection_Call) Run(run func(_a0 []byte)) *WebsocketDataWriterInterface_WriteMessageToWebsocketConnection_Call
- func (_c *WebsocketDataWriterInterface_WriteMessageToWebsocketConnection_Call) RunAndReturn(run func([]byte) error) *WebsocketDataWriterInterface_WriteMessageToWebsocketConnection_Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HubInterface ¶
HubInterface is an autogenerated mock type for the HubInterface type
func NewHubInterface ¶
func NewHubInterface(t interface {
mock.TestingT
Cleanup(func())
}) *HubInterface
NewHubInterface creates a new instance of HubInterface. 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 (*HubInterface) CancelPairingWithSKI ¶
func (_m *HubInterface) CancelPairingWithSKI(ski string)
CancelPairingWithSKI provides a mock function with given fields: ski
func (*HubInterface) DisconnectSKI ¶
func (_m *HubInterface) DisconnectSKI(ski string, reason string)
DisconnectSKI provides a mock function with given fields: ski, reason
func (*HubInterface) EXPECT ¶
func (_m *HubInterface) EXPECT() *HubInterface_Expecter
func (*HubInterface) PairingDetailForSki ¶
func (_m *HubInterface) PairingDetailForSki(ski string) *api.ConnectionStateDetail
PairingDetailForSki provides a mock function with given fields: ski
func (*HubInterface) RegisterRemoteSKI ¶
func (_m *HubInterface) RegisterRemoteSKI(ski string)
RegisterRemoteSKI provides a mock function with given fields: ski
func (*HubInterface) ServiceForSKI ¶
func (_m *HubInterface) ServiceForSKI(ski string) *api.ServiceDetails
ServiceForSKI provides a mock function with given fields: ski
func (*HubInterface) SetAutoAccept ¶
func (_m *HubInterface) SetAutoAccept(_a0 bool)
SetAutoAccept provides a mock function with given fields: _a0
func (*HubInterface) Shutdown ¶
func (_m *HubInterface) Shutdown()
Shutdown provides a mock function with given fields:
func (*HubInterface) Start ¶
func (_m *HubInterface) Start()
Start provides a mock function with given fields:
func (*HubInterface) UnregisterRemoteSKI ¶
func (_m *HubInterface) UnregisterRemoteSKI(ski string)
UnregisterRemoteSKI provides a mock function with given fields: ski
type HubInterface_CancelPairingWithSKI_Call ¶
HubInterface_CancelPairingWithSKI_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CancelPairingWithSKI'
func (*HubInterface_CancelPairingWithSKI_Call) Return ¶
func (_c *HubInterface_CancelPairingWithSKI_Call) Return() *HubInterface_CancelPairingWithSKI_Call
func (*HubInterface_CancelPairingWithSKI_Call) Run ¶
func (_c *HubInterface_CancelPairingWithSKI_Call) Run(run func(ski string)) *HubInterface_CancelPairingWithSKI_Call
func (*HubInterface_CancelPairingWithSKI_Call) RunAndReturn ¶
func (_c *HubInterface_CancelPairingWithSKI_Call) RunAndReturn(run func(string)) *HubInterface_CancelPairingWithSKI_Call
type HubInterface_DisconnectSKI_Call ¶
HubInterface_DisconnectSKI_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DisconnectSKI'
func (*HubInterface_DisconnectSKI_Call) Return ¶
func (_c *HubInterface_DisconnectSKI_Call) Return() *HubInterface_DisconnectSKI_Call
func (*HubInterface_DisconnectSKI_Call) Run ¶
func (_c *HubInterface_DisconnectSKI_Call) Run(run func(ski string, reason string)) *HubInterface_DisconnectSKI_Call
func (*HubInterface_DisconnectSKI_Call) RunAndReturn ¶
func (_c *HubInterface_DisconnectSKI_Call) RunAndReturn(run func(string, string)) *HubInterface_DisconnectSKI_Call
type HubInterface_Expecter ¶
type HubInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*HubInterface_Expecter) CancelPairingWithSKI ¶
func (_e *HubInterface_Expecter) CancelPairingWithSKI(ski interface{}) *HubInterface_CancelPairingWithSKI_Call
CancelPairingWithSKI is a helper method to define mock.On call
- ski string
func (*HubInterface_Expecter) DisconnectSKI ¶
func (_e *HubInterface_Expecter) DisconnectSKI(ski interface{}, reason interface{}) *HubInterface_DisconnectSKI_Call
DisconnectSKI is a helper method to define mock.On call
- ski string
- reason string
func (*HubInterface_Expecter) PairingDetailForSki ¶
func (_e *HubInterface_Expecter) PairingDetailForSki(ski interface{}) *HubInterface_PairingDetailForSki_Call
PairingDetailForSki is a helper method to define mock.On call
- ski string
func (*HubInterface_Expecter) RegisterRemoteSKI ¶
func (_e *HubInterface_Expecter) RegisterRemoteSKI(ski interface{}) *HubInterface_RegisterRemoteSKI_Call
RegisterRemoteSKI is a helper method to define mock.On call
- ski string
func (*HubInterface_Expecter) ServiceForSKI ¶
func (_e *HubInterface_Expecter) ServiceForSKI(ski interface{}) *HubInterface_ServiceForSKI_Call
ServiceForSKI is a helper method to define mock.On call
- ski string
func (*HubInterface_Expecter) SetAutoAccept ¶
func (_e *HubInterface_Expecter) SetAutoAccept(_a0 interface{}) *HubInterface_SetAutoAccept_Call
SetAutoAccept is a helper method to define mock.On call
- _a0 bool
func (*HubInterface_Expecter) Shutdown ¶
func (_e *HubInterface_Expecter) Shutdown() *HubInterface_Shutdown_Call
Shutdown is a helper method to define mock.On call
func (*HubInterface_Expecter) Start ¶
func (_e *HubInterface_Expecter) Start() *HubInterface_Start_Call
Start is a helper method to define mock.On call
func (*HubInterface_Expecter) UnregisterRemoteSKI ¶
func (_e *HubInterface_Expecter) UnregisterRemoteSKI(ski interface{}) *HubInterface_UnregisterRemoteSKI_Call
UnregisterRemoteSKI is a helper method to define mock.On call
- ski string
type HubInterface_PairingDetailForSki_Call ¶
HubInterface_PairingDetailForSki_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'PairingDetailForSki'
func (*HubInterface_PairingDetailForSki_Call) Return ¶
func (_c *HubInterface_PairingDetailForSki_Call) Return(_a0 *api.ConnectionStateDetail) *HubInterface_PairingDetailForSki_Call
func (*HubInterface_PairingDetailForSki_Call) Run ¶
func (_c *HubInterface_PairingDetailForSki_Call) Run(run func(ski string)) *HubInterface_PairingDetailForSki_Call
func (*HubInterface_PairingDetailForSki_Call) RunAndReturn ¶
func (_c *HubInterface_PairingDetailForSki_Call) RunAndReturn(run func(string) *api.ConnectionStateDetail) *HubInterface_PairingDetailForSki_Call
type HubInterface_RegisterRemoteSKI_Call ¶
HubInterface_RegisterRemoteSKI_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RegisterRemoteSKI'
func (*HubInterface_RegisterRemoteSKI_Call) Return ¶
func (_c *HubInterface_RegisterRemoteSKI_Call) Return() *HubInterface_RegisterRemoteSKI_Call
func (*HubInterface_RegisterRemoteSKI_Call) Run ¶
func (_c *HubInterface_RegisterRemoteSKI_Call) Run(run func(ski string)) *HubInterface_RegisterRemoteSKI_Call
func (*HubInterface_RegisterRemoteSKI_Call) RunAndReturn ¶
func (_c *HubInterface_RegisterRemoteSKI_Call) RunAndReturn(run func(string)) *HubInterface_RegisterRemoteSKI_Call
type HubInterface_ServiceForSKI_Call ¶
HubInterface_ServiceForSKI_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ServiceForSKI'
func (*HubInterface_ServiceForSKI_Call) Return ¶
func (_c *HubInterface_ServiceForSKI_Call) Return(_a0 *api.ServiceDetails) *HubInterface_ServiceForSKI_Call
func (*HubInterface_ServiceForSKI_Call) Run ¶
func (_c *HubInterface_ServiceForSKI_Call) Run(run func(ski string)) *HubInterface_ServiceForSKI_Call
func (*HubInterface_ServiceForSKI_Call) RunAndReturn ¶
func (_c *HubInterface_ServiceForSKI_Call) RunAndReturn(run func(string) *api.ServiceDetails) *HubInterface_ServiceForSKI_Call
type HubInterface_SetAutoAccept_Call ¶
HubInterface_SetAutoAccept_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetAutoAccept'
func (*HubInterface_SetAutoAccept_Call) Return ¶
func (_c *HubInterface_SetAutoAccept_Call) Return() *HubInterface_SetAutoAccept_Call
func (*HubInterface_SetAutoAccept_Call) Run ¶
func (_c *HubInterface_SetAutoAccept_Call) Run(run func(_a0 bool)) *HubInterface_SetAutoAccept_Call
func (*HubInterface_SetAutoAccept_Call) RunAndReturn ¶
func (_c *HubInterface_SetAutoAccept_Call) RunAndReturn(run func(bool)) *HubInterface_SetAutoAccept_Call
type HubInterface_Shutdown_Call ¶
HubInterface_Shutdown_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Shutdown'
func (*HubInterface_Shutdown_Call) Return ¶
func (_c *HubInterface_Shutdown_Call) Return() *HubInterface_Shutdown_Call
func (*HubInterface_Shutdown_Call) Run ¶
func (_c *HubInterface_Shutdown_Call) Run(run func()) *HubInterface_Shutdown_Call
func (*HubInterface_Shutdown_Call) RunAndReturn ¶
func (_c *HubInterface_Shutdown_Call) RunAndReturn(run func()) *HubInterface_Shutdown_Call
type HubInterface_Start_Call ¶
HubInterface_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*HubInterface_Start_Call) Return ¶
func (_c *HubInterface_Start_Call) Return() *HubInterface_Start_Call
func (*HubInterface_Start_Call) Run ¶
func (_c *HubInterface_Start_Call) Run(run func()) *HubInterface_Start_Call
func (*HubInterface_Start_Call) RunAndReturn ¶
func (_c *HubInterface_Start_Call) RunAndReturn(run func()) *HubInterface_Start_Call
type HubInterface_UnregisterRemoteSKI_Call ¶
HubInterface_UnregisterRemoteSKI_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnregisterRemoteSKI'
func (*HubInterface_UnregisterRemoteSKI_Call) Return ¶
func (_c *HubInterface_UnregisterRemoteSKI_Call) Return() *HubInterface_UnregisterRemoteSKI_Call
func (*HubInterface_UnregisterRemoteSKI_Call) Run ¶
func (_c *HubInterface_UnregisterRemoteSKI_Call) Run(run func(ski string)) *HubInterface_UnregisterRemoteSKI_Call
func (*HubInterface_UnregisterRemoteSKI_Call) RunAndReturn ¶
func (_c *HubInterface_UnregisterRemoteSKI_Call) RunAndReturn(run func(string)) *HubInterface_UnregisterRemoteSKI_Call
type HubReaderInterface ¶
HubReaderInterface is an autogenerated mock type for the HubReaderInterface type
func NewHubReaderInterface ¶
func NewHubReaderInterface(t interface {
mock.TestingT
Cleanup(func())
}) *HubReaderInterface
NewHubReaderInterface creates a new instance of HubReaderInterface. 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 (*HubReaderInterface) AllowWaitingForTrust ¶
func (_m *HubReaderInterface) AllowWaitingForTrust(ski string) bool
AllowWaitingForTrust provides a mock function with given fields: ski
func (*HubReaderInterface) EXPECT ¶
func (_m *HubReaderInterface) EXPECT() *HubReaderInterface_Expecter
func (*HubReaderInterface) RemoteSKIConnected ¶
func (_m *HubReaderInterface) RemoteSKIConnected(ski string)
RemoteSKIConnected provides a mock function with given fields: ski
func (*HubReaderInterface) RemoteSKIDisconnected ¶
func (_m *HubReaderInterface) RemoteSKIDisconnected(ski string)
RemoteSKIDisconnected provides a mock function with given fields: ski
func (*HubReaderInterface) ServicePairingDetailUpdate ¶
func (_m *HubReaderInterface) ServicePairingDetailUpdate(ski string, detail *api.ConnectionStateDetail)
ServicePairingDetailUpdate provides a mock function with given fields: ski, detail
func (*HubReaderInterface) ServiceShipIDUpdate ¶
func (_m *HubReaderInterface) ServiceShipIDUpdate(ski string, shipdID string)
ServiceShipIDUpdate provides a mock function with given fields: ski, shipdID
func (*HubReaderInterface) SetupRemoteDevice ¶
func (_m *HubReaderInterface) SetupRemoteDevice(ski string, writeI api.ShipConnectionDataWriterInterface) api.ShipConnectionDataReaderInterface
SetupRemoteDevice provides a mock function with given fields: ski, writeI
func (*HubReaderInterface) VisibleRemoteServicesUpdated ¶
func (_m *HubReaderInterface) VisibleRemoteServicesUpdated(entries []api.RemoteService)
VisibleRemoteServicesUpdated provides a mock function with given fields: entries
type HubReaderInterface_AllowWaitingForTrust_Call ¶
HubReaderInterface_AllowWaitingForTrust_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AllowWaitingForTrust'
func (*HubReaderInterface_AllowWaitingForTrust_Call) Return ¶
func (_c *HubReaderInterface_AllowWaitingForTrust_Call) Return(_a0 bool) *HubReaderInterface_AllowWaitingForTrust_Call
func (*HubReaderInterface_AllowWaitingForTrust_Call) Run ¶
func (_c *HubReaderInterface_AllowWaitingForTrust_Call) Run(run func(ski string)) *HubReaderInterface_AllowWaitingForTrust_Call
func (*HubReaderInterface_AllowWaitingForTrust_Call) RunAndReturn ¶
func (_c *HubReaderInterface_AllowWaitingForTrust_Call) RunAndReturn(run func(string) bool) *HubReaderInterface_AllowWaitingForTrust_Call
type HubReaderInterface_Expecter ¶
type HubReaderInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*HubReaderInterface_Expecter) AllowWaitingForTrust ¶
func (_e *HubReaderInterface_Expecter) AllowWaitingForTrust(ski interface{}) *HubReaderInterface_AllowWaitingForTrust_Call
AllowWaitingForTrust is a helper method to define mock.On call
- ski string
func (*HubReaderInterface_Expecter) RemoteSKIConnected ¶
func (_e *HubReaderInterface_Expecter) RemoteSKIConnected(ski interface{}) *HubReaderInterface_RemoteSKIConnected_Call
RemoteSKIConnected is a helper method to define mock.On call
- ski string
func (*HubReaderInterface_Expecter) RemoteSKIDisconnected ¶
func (_e *HubReaderInterface_Expecter) RemoteSKIDisconnected(ski interface{}) *HubReaderInterface_RemoteSKIDisconnected_Call
RemoteSKIDisconnected is a helper method to define mock.On call
- ski string
func (*HubReaderInterface_Expecter) ServicePairingDetailUpdate ¶
func (_e *HubReaderInterface_Expecter) ServicePairingDetailUpdate(ski interface{}, detail interface{}) *HubReaderInterface_ServicePairingDetailUpdate_Call
ServicePairingDetailUpdate is a helper method to define mock.On call
- ski string
- detail *api.ConnectionStateDetail
func (*HubReaderInterface_Expecter) ServiceShipIDUpdate ¶
func (_e *HubReaderInterface_Expecter) ServiceShipIDUpdate(ski interface{}, shipdID interface{}) *HubReaderInterface_ServiceShipIDUpdate_Call
ServiceShipIDUpdate is a helper method to define mock.On call
- ski string
- shipdID string
func (*HubReaderInterface_Expecter) SetupRemoteDevice ¶
func (_e *HubReaderInterface_Expecter) SetupRemoteDevice(ski interface{}, writeI interface{}) *HubReaderInterface_SetupRemoteDevice_Call
SetupRemoteDevice is a helper method to define mock.On call
- ski string
- writeI api.ShipConnectionDataWriterInterface
func (*HubReaderInterface_Expecter) VisibleRemoteServicesUpdated ¶
func (_e *HubReaderInterface_Expecter) VisibleRemoteServicesUpdated(entries interface{}) *HubReaderInterface_VisibleRemoteServicesUpdated_Call
VisibleRemoteServicesUpdated is a helper method to define mock.On call
- entries []api.RemoteService
type HubReaderInterface_RemoteSKIConnected_Call ¶
HubReaderInterface_RemoteSKIConnected_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoteSKIConnected'
func (*HubReaderInterface_RemoteSKIConnected_Call) Return ¶
func (_c *HubReaderInterface_RemoteSKIConnected_Call) Return() *HubReaderInterface_RemoteSKIConnected_Call
func (*HubReaderInterface_RemoteSKIConnected_Call) Run ¶
func (_c *HubReaderInterface_RemoteSKIConnected_Call) Run(run func(ski string)) *HubReaderInterface_RemoteSKIConnected_Call
func (*HubReaderInterface_RemoteSKIConnected_Call) RunAndReturn ¶
func (_c *HubReaderInterface_RemoteSKIConnected_Call) RunAndReturn(run func(string)) *HubReaderInterface_RemoteSKIConnected_Call
type HubReaderInterface_RemoteSKIDisconnected_Call ¶
HubReaderInterface_RemoteSKIDisconnected_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoteSKIDisconnected'
func (*HubReaderInterface_RemoteSKIDisconnected_Call) Run ¶
func (_c *HubReaderInterface_RemoteSKIDisconnected_Call) Run(run func(ski string)) *HubReaderInterface_RemoteSKIDisconnected_Call
func (*HubReaderInterface_RemoteSKIDisconnected_Call) RunAndReturn ¶
func (_c *HubReaderInterface_RemoteSKIDisconnected_Call) RunAndReturn(run func(string)) *HubReaderInterface_RemoteSKIDisconnected_Call
type HubReaderInterface_ServicePairingDetailUpdate_Call ¶
HubReaderInterface_ServicePairingDetailUpdate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ServicePairingDetailUpdate'
func (*HubReaderInterface_ServicePairingDetailUpdate_Call) Run ¶
func (_c *HubReaderInterface_ServicePairingDetailUpdate_Call) Run(run func(ski string, detail *api.ConnectionStateDetail)) *HubReaderInterface_ServicePairingDetailUpdate_Call
func (*HubReaderInterface_ServicePairingDetailUpdate_Call) RunAndReturn ¶
func (_c *HubReaderInterface_ServicePairingDetailUpdate_Call) RunAndReturn(run func(string, *api.ConnectionStateDetail)) *HubReaderInterface_ServicePairingDetailUpdate_Call
type HubReaderInterface_ServiceShipIDUpdate_Call ¶
HubReaderInterface_ServiceShipIDUpdate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ServiceShipIDUpdate'
func (*HubReaderInterface_ServiceShipIDUpdate_Call) Return ¶
func (_c *HubReaderInterface_ServiceShipIDUpdate_Call) Return() *HubReaderInterface_ServiceShipIDUpdate_Call
func (*HubReaderInterface_ServiceShipIDUpdate_Call) Run ¶
func (_c *HubReaderInterface_ServiceShipIDUpdate_Call) Run(run func(ski string, shipdID string)) *HubReaderInterface_ServiceShipIDUpdate_Call
func (*HubReaderInterface_ServiceShipIDUpdate_Call) RunAndReturn ¶
func (_c *HubReaderInterface_ServiceShipIDUpdate_Call) RunAndReturn(run func(string, string)) *HubReaderInterface_ServiceShipIDUpdate_Call
type HubReaderInterface_SetupRemoteDevice_Call ¶
HubReaderInterface_SetupRemoteDevice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetupRemoteDevice'
func (*HubReaderInterface_SetupRemoteDevice_Call) Run ¶
func (_c *HubReaderInterface_SetupRemoteDevice_Call) Run(run func(ski string, writeI api.ShipConnectionDataWriterInterface)) *HubReaderInterface_SetupRemoteDevice_Call
func (*HubReaderInterface_SetupRemoteDevice_Call) RunAndReturn ¶
func (_c *HubReaderInterface_SetupRemoteDevice_Call) RunAndReturn(run func(string, api.ShipConnectionDataWriterInterface) api.ShipConnectionDataReaderInterface) *HubReaderInterface_SetupRemoteDevice_Call
type HubReaderInterface_VisibleRemoteServicesUpdated_Call ¶
HubReaderInterface_VisibleRemoteServicesUpdated_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'VisibleRemoteServicesUpdated'
func (*HubReaderInterface_VisibleRemoteServicesUpdated_Call) Run ¶
func (_c *HubReaderInterface_VisibleRemoteServicesUpdated_Call) Run(run func(entries []api.RemoteService)) *HubReaderInterface_VisibleRemoteServicesUpdated_Call
func (*HubReaderInterface_VisibleRemoteServicesUpdated_Call) RunAndReturn ¶
func (_c *HubReaderInterface_VisibleRemoteServicesUpdated_Call) RunAndReturn(run func([]api.RemoteService)) *HubReaderInterface_VisibleRemoteServicesUpdated_Call
type LoggingInterface ¶
LoggingInterface is an autogenerated mock type for the LoggingInterface type
func NewLoggingInterface ¶
func NewLoggingInterface(t interface {
mock.TestingT
Cleanup(func())
}) *LoggingInterface
NewLoggingInterface creates a new instance of LoggingInterface. 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 (*LoggingInterface) Debug ¶
func (_m *LoggingInterface) Debug(args ...interface{})
Debug provides a mock function with given fields: args
func (*LoggingInterface) Debugf ¶
func (_m *LoggingInterface) Debugf(format string, args ...interface{})
Debugf provides a mock function with given fields: format, args
func (*LoggingInterface) EXPECT ¶
func (_m *LoggingInterface) EXPECT() *LoggingInterface_Expecter
func (*LoggingInterface) Error ¶
func (_m *LoggingInterface) Error(args ...interface{})
Error provides a mock function with given fields: args
func (*LoggingInterface) Errorf ¶
func (_m *LoggingInterface) Errorf(format string, args ...interface{})
Errorf provides a mock function with given fields: format, args
func (*LoggingInterface) Info ¶
func (_m *LoggingInterface) Info(args ...interface{})
Info provides a mock function with given fields: args
func (*LoggingInterface) Infof ¶
func (_m *LoggingInterface) Infof(format string, args ...interface{})
Infof provides a mock function with given fields: format, args
func (*LoggingInterface) Trace ¶
func (_m *LoggingInterface) Trace(args ...interface{})
Trace provides a mock function with given fields: args
func (*LoggingInterface) Tracef ¶
func (_m *LoggingInterface) Tracef(format string, args ...interface{})
Tracef provides a mock function with given fields: format, args
type LoggingInterface_Debug_Call ¶
LoggingInterface_Debug_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Debug'
func (*LoggingInterface_Debug_Call) Return ¶
func (_c *LoggingInterface_Debug_Call) Return() *LoggingInterface_Debug_Call
func (*LoggingInterface_Debug_Call) Run ¶
func (_c *LoggingInterface_Debug_Call) Run(run func(args ...interface{})) *LoggingInterface_Debug_Call
func (*LoggingInterface_Debug_Call) RunAndReturn ¶
func (_c *LoggingInterface_Debug_Call) RunAndReturn(run func(...interface{})) *LoggingInterface_Debug_Call
type LoggingInterface_Debugf_Call ¶
LoggingInterface_Debugf_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Debugf'
func (*LoggingInterface_Debugf_Call) Return ¶
func (_c *LoggingInterface_Debugf_Call) Return() *LoggingInterface_Debugf_Call
func (*LoggingInterface_Debugf_Call) Run ¶
func (_c *LoggingInterface_Debugf_Call) Run(run func(format string, args ...interface{})) *LoggingInterface_Debugf_Call
func (*LoggingInterface_Debugf_Call) RunAndReturn ¶
func (_c *LoggingInterface_Debugf_Call) RunAndReturn(run func(string, ...interface{})) *LoggingInterface_Debugf_Call
type LoggingInterface_Error_Call ¶
LoggingInterface_Error_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Error'
func (*LoggingInterface_Error_Call) Return ¶
func (_c *LoggingInterface_Error_Call) Return() *LoggingInterface_Error_Call
func (*LoggingInterface_Error_Call) Run ¶
func (_c *LoggingInterface_Error_Call) Run(run func(args ...interface{})) *LoggingInterface_Error_Call
func (*LoggingInterface_Error_Call) RunAndReturn ¶
func (_c *LoggingInterface_Error_Call) RunAndReturn(run func(...interface{})) *LoggingInterface_Error_Call
type LoggingInterface_Errorf_Call ¶
LoggingInterface_Errorf_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Errorf'
func (*LoggingInterface_Errorf_Call) Return ¶
func (_c *LoggingInterface_Errorf_Call) Return() *LoggingInterface_Errorf_Call
func (*LoggingInterface_Errorf_Call) Run ¶
func (_c *LoggingInterface_Errorf_Call) Run(run func(format string, args ...interface{})) *LoggingInterface_Errorf_Call
func (*LoggingInterface_Errorf_Call) RunAndReturn ¶
func (_c *LoggingInterface_Errorf_Call) RunAndReturn(run func(string, ...interface{})) *LoggingInterface_Errorf_Call
type LoggingInterface_Expecter ¶
type LoggingInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*LoggingInterface_Expecter) Debug ¶
func (_e *LoggingInterface_Expecter) Debug(args ...interface{}) *LoggingInterface_Debug_Call
Debug is a helper method to define mock.On call
- args ...interface{}
func (*LoggingInterface_Expecter) Debugf ¶
func (_e *LoggingInterface_Expecter) Debugf(format interface{}, args ...interface{}) *LoggingInterface_Debugf_Call
Debugf is a helper method to define mock.On call
- format string
- args ...interface{}
func (*LoggingInterface_Expecter) Error ¶
func (_e *LoggingInterface_Expecter) Error(args ...interface{}) *LoggingInterface_Error_Call
Error is a helper method to define mock.On call
- args ...interface{}
func (*LoggingInterface_Expecter) Errorf ¶
func (_e *LoggingInterface_Expecter) Errorf(format interface{}, args ...interface{}) *LoggingInterface_Errorf_Call
Errorf is a helper method to define mock.On call
- format string
- args ...interface{}
func (*LoggingInterface_Expecter) Info ¶
func (_e *LoggingInterface_Expecter) Info(args ...interface{}) *LoggingInterface_Info_Call
Info is a helper method to define mock.On call
- args ...interface{}
func (*LoggingInterface_Expecter) Infof ¶
func (_e *LoggingInterface_Expecter) Infof(format interface{}, args ...interface{}) *LoggingInterface_Infof_Call
Infof is a helper method to define mock.On call
- format string
- args ...interface{}
func (*LoggingInterface_Expecter) Trace ¶
func (_e *LoggingInterface_Expecter) Trace(args ...interface{}) *LoggingInterface_Trace_Call
Trace is a helper method to define mock.On call
- args ...interface{}
func (*LoggingInterface_Expecter) Tracef ¶
func (_e *LoggingInterface_Expecter) Tracef(format interface{}, args ...interface{}) *LoggingInterface_Tracef_Call
Tracef is a helper method to define mock.On call
- format string
- args ...interface{}
type LoggingInterface_Info_Call ¶
LoggingInterface_Info_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Info'
func (*LoggingInterface_Info_Call) Return ¶
func (_c *LoggingInterface_Info_Call) Return() *LoggingInterface_Info_Call
func (*LoggingInterface_Info_Call) Run ¶
func (_c *LoggingInterface_Info_Call) Run(run func(args ...interface{})) *LoggingInterface_Info_Call
func (*LoggingInterface_Info_Call) RunAndReturn ¶
func (_c *LoggingInterface_Info_Call) RunAndReturn(run func(...interface{})) *LoggingInterface_Info_Call
type LoggingInterface_Infof_Call ¶
LoggingInterface_Infof_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Infof'
func (*LoggingInterface_Infof_Call) Return ¶
func (_c *LoggingInterface_Infof_Call) Return() *LoggingInterface_Infof_Call
func (*LoggingInterface_Infof_Call) Run ¶
func (_c *LoggingInterface_Infof_Call) Run(run func(format string, args ...interface{})) *LoggingInterface_Infof_Call
func (*LoggingInterface_Infof_Call) RunAndReturn ¶
func (_c *LoggingInterface_Infof_Call) RunAndReturn(run func(string, ...interface{})) *LoggingInterface_Infof_Call
type LoggingInterface_Trace_Call ¶
LoggingInterface_Trace_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Trace'
func (*LoggingInterface_Trace_Call) Return ¶
func (_c *LoggingInterface_Trace_Call) Return() *LoggingInterface_Trace_Call
func (*LoggingInterface_Trace_Call) Run ¶
func (_c *LoggingInterface_Trace_Call) Run(run func(args ...interface{})) *LoggingInterface_Trace_Call
func (*LoggingInterface_Trace_Call) RunAndReturn ¶
func (_c *LoggingInterface_Trace_Call) RunAndReturn(run func(...interface{})) *LoggingInterface_Trace_Call
type LoggingInterface_Tracef_Call ¶
LoggingInterface_Tracef_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Tracef'
func (*LoggingInterface_Tracef_Call) Return ¶
func (_c *LoggingInterface_Tracef_Call) Return() *LoggingInterface_Tracef_Call
func (*LoggingInterface_Tracef_Call) Run ¶
func (_c *LoggingInterface_Tracef_Call) Run(run func(format string, args ...interface{})) *LoggingInterface_Tracef_Call
func (*LoggingInterface_Tracef_Call) RunAndReturn ¶
func (_c *LoggingInterface_Tracef_Call) RunAndReturn(run func(string, ...interface{})) *LoggingInterface_Tracef_Call
type MdnsInterface ¶
MdnsInterface is an autogenerated mock type for the MdnsInterface type
func NewMdnsInterface ¶
func NewMdnsInterface(t interface {
mock.TestingT
Cleanup(func())
}) *MdnsInterface
NewMdnsInterface creates a new instance of MdnsInterface. 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 (*MdnsInterface) AnnounceMdnsEntry ¶
func (_m *MdnsInterface) AnnounceMdnsEntry() error
AnnounceMdnsEntry provides a mock function with given fields:
func (*MdnsInterface) EXPECT ¶
func (_m *MdnsInterface) EXPECT() *MdnsInterface_Expecter
func (*MdnsInterface) RequestMdnsEntries ¶
func (_m *MdnsInterface) RequestMdnsEntries()
RequestMdnsEntries provides a mock function with given fields:
func (*MdnsInterface) SetAutoAccept ¶
func (_m *MdnsInterface) SetAutoAccept(_a0 bool)
SetAutoAccept provides a mock function with given fields: _a0
func (*MdnsInterface) Shutdown ¶
func (_m *MdnsInterface) Shutdown()
Shutdown provides a mock function with given fields:
func (*MdnsInterface) Start ¶
func (_m *MdnsInterface) Start(cb api.MdnsReportInterface) error
Start provides a mock function with given fields: cb
func (*MdnsInterface) UnannounceMdnsEntry ¶
func (_m *MdnsInterface) UnannounceMdnsEntry()
UnannounceMdnsEntry provides a mock function with given fields:
type MdnsInterface_AnnounceMdnsEntry_Call ¶
MdnsInterface_AnnounceMdnsEntry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AnnounceMdnsEntry'
func (*MdnsInterface_AnnounceMdnsEntry_Call) Return ¶
func (_c *MdnsInterface_AnnounceMdnsEntry_Call) Return(_a0 error) *MdnsInterface_AnnounceMdnsEntry_Call
func (*MdnsInterface_AnnounceMdnsEntry_Call) Run ¶
func (_c *MdnsInterface_AnnounceMdnsEntry_Call) Run(run func()) *MdnsInterface_AnnounceMdnsEntry_Call
func (*MdnsInterface_AnnounceMdnsEntry_Call) RunAndReturn ¶
func (_c *MdnsInterface_AnnounceMdnsEntry_Call) RunAndReturn(run func() error) *MdnsInterface_AnnounceMdnsEntry_Call
type MdnsInterface_Expecter ¶
type MdnsInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*MdnsInterface_Expecter) AnnounceMdnsEntry ¶
func (_e *MdnsInterface_Expecter) AnnounceMdnsEntry() *MdnsInterface_AnnounceMdnsEntry_Call
AnnounceMdnsEntry is a helper method to define mock.On call
func (*MdnsInterface_Expecter) RequestMdnsEntries ¶
func (_e *MdnsInterface_Expecter) RequestMdnsEntries() *MdnsInterface_RequestMdnsEntries_Call
RequestMdnsEntries is a helper method to define mock.On call
func (*MdnsInterface_Expecter) SetAutoAccept ¶
func (_e *MdnsInterface_Expecter) SetAutoAccept(_a0 interface{}) *MdnsInterface_SetAutoAccept_Call
SetAutoAccept is a helper method to define mock.On call
- _a0 bool
func (*MdnsInterface_Expecter) Shutdown ¶
func (_e *MdnsInterface_Expecter) Shutdown() *MdnsInterface_Shutdown_Call
Shutdown is a helper method to define mock.On call
func (*MdnsInterface_Expecter) Start ¶
func (_e *MdnsInterface_Expecter) Start(cb interface{}) *MdnsInterface_Start_Call
Start is a helper method to define mock.On call
- cb api.MdnsReportInterface
func (*MdnsInterface_Expecter) UnannounceMdnsEntry ¶
func (_e *MdnsInterface_Expecter) UnannounceMdnsEntry() *MdnsInterface_UnannounceMdnsEntry_Call
UnannounceMdnsEntry is a helper method to define mock.On call
type MdnsInterface_RequestMdnsEntries_Call ¶
MdnsInterface_RequestMdnsEntries_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RequestMdnsEntries'
func (*MdnsInterface_RequestMdnsEntries_Call) Return ¶
func (_c *MdnsInterface_RequestMdnsEntries_Call) Return() *MdnsInterface_RequestMdnsEntries_Call
func (*MdnsInterface_RequestMdnsEntries_Call) Run ¶
func (_c *MdnsInterface_RequestMdnsEntries_Call) Run(run func()) *MdnsInterface_RequestMdnsEntries_Call
func (*MdnsInterface_RequestMdnsEntries_Call) RunAndReturn ¶
func (_c *MdnsInterface_RequestMdnsEntries_Call) RunAndReturn(run func()) *MdnsInterface_RequestMdnsEntries_Call
type MdnsInterface_SetAutoAccept_Call ¶
MdnsInterface_SetAutoAccept_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetAutoAccept'
func (*MdnsInterface_SetAutoAccept_Call) Return ¶
func (_c *MdnsInterface_SetAutoAccept_Call) Return() *MdnsInterface_SetAutoAccept_Call
func (*MdnsInterface_SetAutoAccept_Call) Run ¶
func (_c *MdnsInterface_SetAutoAccept_Call) Run(run func(_a0 bool)) *MdnsInterface_SetAutoAccept_Call
func (*MdnsInterface_SetAutoAccept_Call) RunAndReturn ¶
func (_c *MdnsInterface_SetAutoAccept_Call) RunAndReturn(run func(bool)) *MdnsInterface_SetAutoAccept_Call
type MdnsInterface_Shutdown_Call ¶
MdnsInterface_Shutdown_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Shutdown'
func (*MdnsInterface_Shutdown_Call) Return ¶
func (_c *MdnsInterface_Shutdown_Call) Return() *MdnsInterface_Shutdown_Call
func (*MdnsInterface_Shutdown_Call) Run ¶
func (_c *MdnsInterface_Shutdown_Call) Run(run func()) *MdnsInterface_Shutdown_Call
func (*MdnsInterface_Shutdown_Call) RunAndReturn ¶
func (_c *MdnsInterface_Shutdown_Call) RunAndReturn(run func()) *MdnsInterface_Shutdown_Call
type MdnsInterface_Start_Call ¶
MdnsInterface_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*MdnsInterface_Start_Call) Return ¶
func (_c *MdnsInterface_Start_Call) Return(_a0 error) *MdnsInterface_Start_Call
func (*MdnsInterface_Start_Call) Run ¶
func (_c *MdnsInterface_Start_Call) Run(run func(cb api.MdnsReportInterface)) *MdnsInterface_Start_Call
func (*MdnsInterface_Start_Call) RunAndReturn ¶
func (_c *MdnsInterface_Start_Call) RunAndReturn(run func(api.MdnsReportInterface) error) *MdnsInterface_Start_Call
type MdnsInterface_UnannounceMdnsEntry_Call ¶
MdnsInterface_UnannounceMdnsEntry_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'UnannounceMdnsEntry'
func (*MdnsInterface_UnannounceMdnsEntry_Call) Return ¶
func (_c *MdnsInterface_UnannounceMdnsEntry_Call) Return() *MdnsInterface_UnannounceMdnsEntry_Call
func (*MdnsInterface_UnannounceMdnsEntry_Call) Run ¶
func (_c *MdnsInterface_UnannounceMdnsEntry_Call) Run(run func()) *MdnsInterface_UnannounceMdnsEntry_Call
func (*MdnsInterface_UnannounceMdnsEntry_Call) RunAndReturn ¶
func (_c *MdnsInterface_UnannounceMdnsEntry_Call) RunAndReturn(run func()) *MdnsInterface_UnannounceMdnsEntry_Call
type MdnsProviderInterface ¶
MdnsProviderInterface is an autogenerated mock type for the MdnsProviderInterface type
func NewMdnsProviderInterface ¶
func NewMdnsProviderInterface(t interface {
mock.TestingT
Cleanup(func())
}) *MdnsProviderInterface
NewMdnsProviderInterface creates a new instance of MdnsProviderInterface. 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 (*MdnsProviderInterface) Announce ¶
func (_m *MdnsProviderInterface) Announce(serviceName string, port int, txt []string) error
Announce provides a mock function with given fields: serviceName, port, txt
func (*MdnsProviderInterface) EXPECT ¶
func (_m *MdnsProviderInterface) EXPECT() *MdnsProviderInterface_Expecter
func (*MdnsProviderInterface) Shutdown ¶
func (_m *MdnsProviderInterface) Shutdown()
Shutdown provides a mock function with given fields:
func (*MdnsProviderInterface) Start ¶ added in v0.6.0
func (_m *MdnsProviderInterface) Start(autoReconnect bool, cb api.MdnsResolveCB) bool
Start provides a mock function with given fields: autoReconnect, cb
func (*MdnsProviderInterface) Unannounce ¶
func (_m *MdnsProviderInterface) Unannounce()
Unannounce provides a mock function with given fields:
type MdnsProviderInterface_Announce_Call ¶
MdnsProviderInterface_Announce_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Announce'
func (*MdnsProviderInterface_Announce_Call) Return ¶
func (_c *MdnsProviderInterface_Announce_Call) Return(_a0 error) *MdnsProviderInterface_Announce_Call
func (*MdnsProviderInterface_Announce_Call) Run ¶
func (_c *MdnsProviderInterface_Announce_Call) Run(run func(serviceName string, port int, txt []string)) *MdnsProviderInterface_Announce_Call
func (*MdnsProviderInterface_Announce_Call) RunAndReturn ¶
func (_c *MdnsProviderInterface_Announce_Call) RunAndReturn(run func(string, int, []string) error) *MdnsProviderInterface_Announce_Call
type MdnsProviderInterface_Expecter ¶
type MdnsProviderInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*MdnsProviderInterface_Expecter) Announce ¶
func (_e *MdnsProviderInterface_Expecter) Announce(serviceName interface{}, port interface{}, txt interface{}) *MdnsProviderInterface_Announce_Call
Announce is a helper method to define mock.On call
- serviceName string
- port int
- txt []string
func (*MdnsProviderInterface_Expecter) Shutdown ¶
func (_e *MdnsProviderInterface_Expecter) Shutdown() *MdnsProviderInterface_Shutdown_Call
Shutdown is a helper method to define mock.On call
func (*MdnsProviderInterface_Expecter) Start ¶ added in v0.6.0
func (_e *MdnsProviderInterface_Expecter) Start(autoReconnect interface{}, cb interface{}) *MdnsProviderInterface_Start_Call
Start is a helper method to define mock.On call
- autoReconnect bool
- cb api.MdnsResolveCB
func (*MdnsProviderInterface_Expecter) Unannounce ¶
func (_e *MdnsProviderInterface_Expecter) Unannounce() *MdnsProviderInterface_Unannounce_Call
Unannounce is a helper method to define mock.On call
type MdnsProviderInterface_Shutdown_Call ¶
MdnsProviderInterface_Shutdown_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Shutdown'
func (*MdnsProviderInterface_Shutdown_Call) Return ¶
func (_c *MdnsProviderInterface_Shutdown_Call) Return() *MdnsProviderInterface_Shutdown_Call
func (*MdnsProviderInterface_Shutdown_Call) Run ¶
func (_c *MdnsProviderInterface_Shutdown_Call) Run(run func()) *MdnsProviderInterface_Shutdown_Call
func (*MdnsProviderInterface_Shutdown_Call) RunAndReturn ¶
func (_c *MdnsProviderInterface_Shutdown_Call) RunAndReturn(run func()) *MdnsProviderInterface_Shutdown_Call
type MdnsProviderInterface_Start_Call ¶ added in v0.6.0
MdnsProviderInterface_Start_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Start'
func (*MdnsProviderInterface_Start_Call) Return ¶ added in v0.6.0
func (_c *MdnsProviderInterface_Start_Call) Return(_a0 bool) *MdnsProviderInterface_Start_Call
func (*MdnsProviderInterface_Start_Call) Run ¶ added in v0.6.0
func (_c *MdnsProviderInterface_Start_Call) Run(run func(autoReconnect bool, cb api.MdnsResolveCB)) *MdnsProviderInterface_Start_Call
func (*MdnsProviderInterface_Start_Call) RunAndReturn ¶ added in v0.6.0
func (_c *MdnsProviderInterface_Start_Call) RunAndReturn(run func(bool, api.MdnsResolveCB) bool) *MdnsProviderInterface_Start_Call
type MdnsProviderInterface_Unannounce_Call ¶
MdnsProviderInterface_Unannounce_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Unannounce'
func (*MdnsProviderInterface_Unannounce_Call) Return ¶
func (_c *MdnsProviderInterface_Unannounce_Call) Return() *MdnsProviderInterface_Unannounce_Call
func (*MdnsProviderInterface_Unannounce_Call) Run ¶
func (_c *MdnsProviderInterface_Unannounce_Call) Run(run func()) *MdnsProviderInterface_Unannounce_Call
func (*MdnsProviderInterface_Unannounce_Call) RunAndReturn ¶
func (_c *MdnsProviderInterface_Unannounce_Call) RunAndReturn(run func()) *MdnsProviderInterface_Unannounce_Call
type MdnsReportInterface ¶
MdnsReportInterface is an autogenerated mock type for the MdnsReportInterface type
func NewMdnsReportInterface ¶
func NewMdnsReportInterface(t interface {
mock.TestingT
Cleanup(func())
}) *MdnsReportInterface
NewMdnsReportInterface creates a new instance of MdnsReportInterface. 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 (*MdnsReportInterface) EXPECT ¶
func (_m *MdnsReportInterface) EXPECT() *MdnsReportInterface_Expecter
func (*MdnsReportInterface) ReportMdnsEntries ¶
func (_m *MdnsReportInterface) ReportMdnsEntries(entries map[string]*api.MdnsEntry, newEntries bool)
ReportMdnsEntries provides a mock function with given fields: entries, newEntries
type MdnsReportInterface_Expecter ¶
type MdnsReportInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*MdnsReportInterface_Expecter) ReportMdnsEntries ¶
func (_e *MdnsReportInterface_Expecter) ReportMdnsEntries(entries interface{}, newEntries interface{}) *MdnsReportInterface_ReportMdnsEntries_Call
ReportMdnsEntries is a helper method to define mock.On call
- entries map[string]*api.MdnsEntry
- newEntries bool
type MdnsReportInterface_ReportMdnsEntries_Call ¶
MdnsReportInterface_ReportMdnsEntries_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReportMdnsEntries'
func (*MdnsReportInterface_ReportMdnsEntries_Call) Return ¶
func (_c *MdnsReportInterface_ReportMdnsEntries_Call) Return() *MdnsReportInterface_ReportMdnsEntries_Call
func (*MdnsReportInterface_ReportMdnsEntries_Call) Run ¶
func (_c *MdnsReportInterface_ReportMdnsEntries_Call) Run(run func(entries map[string]*api.MdnsEntry, newEntries bool)) *MdnsReportInterface_ReportMdnsEntries_Call
func (*MdnsReportInterface_ReportMdnsEntries_Call) RunAndReturn ¶
func (_c *MdnsReportInterface_ReportMdnsEntries_Call) RunAndReturn(run func(map[string]*api.MdnsEntry, bool)) *MdnsReportInterface_ReportMdnsEntries_Call
type MdnsResolveCB ¶
MdnsResolveCB is an autogenerated mock type for the MdnsResolveCB type
func NewMdnsResolveCB ¶
func NewMdnsResolveCB(t interface {
mock.TestingT
Cleanup(func())
}) *MdnsResolveCB
NewMdnsResolveCB creates a new instance of MdnsResolveCB. 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 (*MdnsResolveCB) EXPECT ¶
func (_m *MdnsResolveCB) EXPECT() *MdnsResolveCB_Expecter
type MdnsResolveCB_Execute_Call ¶
MdnsResolveCB_Execute_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'Execute'
func (*MdnsResolveCB_Execute_Call) Return ¶
func (_c *MdnsResolveCB_Execute_Call) Return() *MdnsResolveCB_Execute_Call
func (*MdnsResolveCB_Execute_Call) Run ¶
func (_c *MdnsResolveCB_Execute_Call) Run(run func(elements map[string]string, name string, host string, addresses []net.IP, port int, remove bool)) *MdnsResolveCB_Execute_Call
func (*MdnsResolveCB_Execute_Call) RunAndReturn ¶
func (_c *MdnsResolveCB_Execute_Call) RunAndReturn(run func(map[string]string, string, string, []net.IP, int, bool)) *MdnsResolveCB_Execute_Call
type MdnsResolveCB_Expecter ¶
type MdnsResolveCB_Expecter struct {
// contains filtered or unexported fields
}
func (*MdnsResolveCB_Expecter) Execute ¶
func (_e *MdnsResolveCB_Expecter) Execute(elements interface{}, name interface{}, host interface{}, addresses interface{}, port interface{}, remove interface{}) *MdnsResolveCB_Execute_Call
Execute is a helper method to define mock.On call
- elements map[string]string
- name string
- host string
- addresses []net.IP
- port int
- remove bool
type MockHubReaderInterface ¶
type MockHubReaderInterface struct {
// contains filtered or unexported fields
}
MockHubReaderInterface is a mock of HubReaderInterface interface.
func NewMockHubReaderInterface ¶
func NewMockHubReaderInterface(ctrl *gomock.Controller) *MockHubReaderInterface
NewMockHubReaderInterface creates a new mock instance.
func (*MockHubReaderInterface) AllowWaitingForTrust ¶
func (m *MockHubReaderInterface) AllowWaitingForTrust(arg0 string) bool
AllowWaitingForTrust mocks base method.
func (*MockHubReaderInterface) EXPECT ¶
func (m *MockHubReaderInterface) EXPECT() *MockHubReaderInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockHubReaderInterface) RemoteSKIConnected ¶
func (m *MockHubReaderInterface) RemoteSKIConnected(arg0 string)
RemoteSKIConnected mocks base method.
func (*MockHubReaderInterface) RemoteSKIDisconnected ¶
func (m *MockHubReaderInterface) RemoteSKIDisconnected(arg0 string)
RemoteSKIDisconnected mocks base method.
func (*MockHubReaderInterface) ServicePairingDetailUpdate ¶
func (m *MockHubReaderInterface) ServicePairingDetailUpdate(arg0 string, arg1 *api.ConnectionStateDetail)
ServicePairingDetailUpdate mocks base method.
func (*MockHubReaderInterface) ServiceShipIDUpdate ¶
func (m *MockHubReaderInterface) ServiceShipIDUpdate(arg0, arg1 string)
ServiceShipIDUpdate mocks base method.
func (*MockHubReaderInterface) SetupRemoteDevice ¶
func (m *MockHubReaderInterface) SetupRemoteDevice(arg0 string, arg1 api.ShipConnectionDataWriterInterface) api.ShipConnectionDataReaderInterface
SetupRemoteDevice mocks base method.
func (*MockHubReaderInterface) VisibleRemoteServicesUpdated ¶
func (m *MockHubReaderInterface) VisibleRemoteServicesUpdated(arg0 []api.RemoteService)
VisibleRemoteServicesUpdated mocks base method.
type MockHubReaderInterfaceMockRecorder ¶
type MockHubReaderInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockHubReaderInterfaceMockRecorder is the mock recorder for MockHubReaderInterface.
func (*MockHubReaderInterfaceMockRecorder) AllowWaitingForTrust ¶
func (mr *MockHubReaderInterfaceMockRecorder) AllowWaitingForTrust(arg0 any) *gomock.Call
AllowWaitingForTrust indicates an expected call of AllowWaitingForTrust.
func (*MockHubReaderInterfaceMockRecorder) RemoteSKIConnected ¶
func (mr *MockHubReaderInterfaceMockRecorder) RemoteSKIConnected(arg0 any) *gomock.Call
RemoteSKIConnected indicates an expected call of RemoteSKIConnected.
func (*MockHubReaderInterfaceMockRecorder) RemoteSKIDisconnected ¶
func (mr *MockHubReaderInterfaceMockRecorder) RemoteSKIDisconnected(arg0 any) *gomock.Call
RemoteSKIDisconnected indicates an expected call of RemoteSKIDisconnected.
func (*MockHubReaderInterfaceMockRecorder) ServicePairingDetailUpdate ¶
func (mr *MockHubReaderInterfaceMockRecorder) ServicePairingDetailUpdate(arg0, arg1 any) *gomock.Call
ServicePairingDetailUpdate indicates an expected call of ServicePairingDetailUpdate.
func (*MockHubReaderInterfaceMockRecorder) ServiceShipIDUpdate ¶
func (mr *MockHubReaderInterfaceMockRecorder) ServiceShipIDUpdate(arg0, arg1 any) *gomock.Call
ServiceShipIDUpdate indicates an expected call of ServiceShipIDUpdate.
func (*MockHubReaderInterfaceMockRecorder) SetupRemoteDevice ¶
func (mr *MockHubReaderInterfaceMockRecorder) SetupRemoteDevice(arg0, arg1 any) *gomock.Call
SetupRemoteDevice indicates an expected call of SetupRemoteDevice.
func (*MockHubReaderInterfaceMockRecorder) VisibleRemoteServicesUpdated ¶
func (mr *MockHubReaderInterfaceMockRecorder) VisibleRemoteServicesUpdated(arg0 any) *gomock.Call
VisibleRemoteServicesUpdated indicates an expected call of VisibleRemoteServicesUpdated.
type MockMdnsInterface ¶
type MockMdnsInterface struct {
// contains filtered or unexported fields
}
MockMdnsInterface is a mock of MdnsInterface interface.
func NewMockMdnsInterface ¶
func NewMockMdnsInterface(ctrl *gomock.Controller) *MockMdnsInterface
NewMockMdnsInterface creates a new mock instance.
func (*MockMdnsInterface) AnnounceMdnsEntry ¶
func (m *MockMdnsInterface) AnnounceMdnsEntry() error
AnnounceMdnsEntry mocks base method.
func (*MockMdnsInterface) EXPECT ¶
func (m *MockMdnsInterface) EXPECT() *MockMdnsInterfaceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockMdnsInterface) RequestMdnsEntries ¶
func (m *MockMdnsInterface) RequestMdnsEntries()
RequestMdnsEntries mocks base method.
func (*MockMdnsInterface) SetAutoAccept ¶
func (m *MockMdnsInterface) SetAutoAccept(arg0 bool)
SetAutoAccept mocks base method.
func (*MockMdnsInterface) Shutdown ¶
func (m *MockMdnsInterface) Shutdown()
Shutdown mocks base method.
func (*MockMdnsInterface) Start ¶
func (m *MockMdnsInterface) Start(arg0 api.MdnsReportInterface) error
Start mocks base method.
func (*MockMdnsInterface) UnannounceMdnsEntry ¶
func (m *MockMdnsInterface) UnannounceMdnsEntry()
UnannounceMdnsEntry mocks base method.
type MockMdnsInterfaceMockRecorder ¶
type MockMdnsInterfaceMockRecorder struct {
// contains filtered or unexported fields
}
MockMdnsInterfaceMockRecorder is the mock recorder for MockMdnsInterface.
func (*MockMdnsInterfaceMockRecorder) AnnounceMdnsEntry ¶
func (mr *MockMdnsInterfaceMockRecorder) AnnounceMdnsEntry() *gomock.Call
AnnounceMdnsEntry indicates an expected call of AnnounceMdnsEntry.
func (*MockMdnsInterfaceMockRecorder) RequestMdnsEntries ¶
func (mr *MockMdnsInterfaceMockRecorder) RequestMdnsEntries() *gomock.Call
RequestMdnsEntries indicates an expected call of RequestMdnsEntries.
func (*MockMdnsInterfaceMockRecorder) SetAutoAccept ¶
func (mr *MockMdnsInterfaceMockRecorder) SetAutoAccept(arg0 any) *gomock.Call
SetAutoAccept indicates an expected call of SetAutoAccept.
func (*MockMdnsInterfaceMockRecorder) Shutdown ¶
func (mr *MockMdnsInterfaceMockRecorder) Shutdown() *gomock.Call
Shutdown indicates an expected call of Shutdown.
func (*MockMdnsInterfaceMockRecorder) Start ¶
func (mr *MockMdnsInterfaceMockRecorder) Start(arg0 any) *gomock.Call
Start indicates an expected call of Start.
func (*MockMdnsInterfaceMockRecorder) UnannounceMdnsEntry ¶
func (mr *MockMdnsInterfaceMockRecorder) UnannounceMdnsEntry() *gomock.Call
UnannounceMdnsEntry indicates an expected call of UnannounceMdnsEntry.
type ShipConnectionDataReaderInterface ¶
ShipConnectionDataReaderInterface is an autogenerated mock type for the ShipConnectionDataReaderInterface type
func NewShipConnectionDataReaderInterface ¶
func NewShipConnectionDataReaderInterface(t interface {
mock.TestingT
Cleanup(func())
}) *ShipConnectionDataReaderInterface
NewShipConnectionDataReaderInterface creates a new instance of ShipConnectionDataReaderInterface. 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 (*ShipConnectionDataReaderInterface) EXPECT ¶
func (_m *ShipConnectionDataReaderInterface) EXPECT() *ShipConnectionDataReaderInterface_Expecter
func (*ShipConnectionDataReaderInterface) HandleShipPayloadMessage ¶
func (_m *ShipConnectionDataReaderInterface) HandleShipPayloadMessage(message []byte)
HandleShipPayloadMessage provides a mock function with given fields: message
type ShipConnectionDataReaderInterface_Expecter ¶
type ShipConnectionDataReaderInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*ShipConnectionDataReaderInterface_Expecter) HandleShipPayloadMessage ¶
func (_e *ShipConnectionDataReaderInterface_Expecter) HandleShipPayloadMessage(message interface{}) *ShipConnectionDataReaderInterface_HandleShipPayloadMessage_Call
HandleShipPayloadMessage is a helper method to define mock.On call
- message []byte
type ShipConnectionDataReaderInterface_HandleShipPayloadMessage_Call ¶
ShipConnectionDataReaderInterface_HandleShipPayloadMessage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleShipPayloadMessage'
func (*ShipConnectionDataReaderInterface_HandleShipPayloadMessage_Call) Run ¶
func (_c *ShipConnectionDataReaderInterface_HandleShipPayloadMessage_Call) Run(run func(message []byte)) *ShipConnectionDataReaderInterface_HandleShipPayloadMessage_Call
func (*ShipConnectionDataReaderInterface_HandleShipPayloadMessage_Call) RunAndReturn ¶
func (_c *ShipConnectionDataReaderInterface_HandleShipPayloadMessage_Call) RunAndReturn(run func([]byte)) *ShipConnectionDataReaderInterface_HandleShipPayloadMessage_Call
type ShipConnectionDataWriterInterface ¶
ShipConnectionDataWriterInterface is an autogenerated mock type for the ShipConnectionDataWriterInterface type
func NewShipConnectionDataWriterInterface ¶
func NewShipConnectionDataWriterInterface(t interface {
mock.TestingT
Cleanup(func())
}) *ShipConnectionDataWriterInterface
NewShipConnectionDataWriterInterface creates a new instance of ShipConnectionDataWriterInterface. 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 (*ShipConnectionDataWriterInterface) EXPECT ¶
func (_m *ShipConnectionDataWriterInterface) EXPECT() *ShipConnectionDataWriterInterface_Expecter
func (*ShipConnectionDataWriterInterface) WriteShipMessageWithPayload ¶
func (_m *ShipConnectionDataWriterInterface) WriteShipMessageWithPayload(message []byte)
WriteShipMessageWithPayload provides a mock function with given fields: message
type ShipConnectionDataWriterInterface_Expecter ¶
type ShipConnectionDataWriterInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*ShipConnectionDataWriterInterface_Expecter) WriteShipMessageWithPayload ¶
func (_e *ShipConnectionDataWriterInterface_Expecter) WriteShipMessageWithPayload(message interface{}) *ShipConnectionDataWriterInterface_WriteShipMessageWithPayload_Call
WriteShipMessageWithPayload is a helper method to define mock.On call
- message []byte
type ShipConnectionDataWriterInterface_WriteShipMessageWithPayload_Call ¶
ShipConnectionDataWriterInterface_WriteShipMessageWithPayload_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteShipMessageWithPayload'
func (*ShipConnectionDataWriterInterface_WriteShipMessageWithPayload_Call) Run ¶
func (_c *ShipConnectionDataWriterInterface_WriteShipMessageWithPayload_Call) Run(run func(message []byte)) *ShipConnectionDataWriterInterface_WriteShipMessageWithPayload_Call
func (*ShipConnectionDataWriterInterface_WriteShipMessageWithPayload_Call) RunAndReturn ¶
func (_c *ShipConnectionDataWriterInterface_WriteShipMessageWithPayload_Call) RunAndReturn(run func([]byte)) *ShipConnectionDataWriterInterface_WriteShipMessageWithPayload_Call
type ShipConnectionInfoProviderInterface ¶
ShipConnectionInfoProviderInterface is an autogenerated mock type for the ShipConnectionInfoProviderInterface type
func NewShipConnectionInfoProviderInterface ¶
func NewShipConnectionInfoProviderInterface(t interface {
mock.TestingT
Cleanup(func())
}) *ShipConnectionInfoProviderInterface
NewShipConnectionInfoProviderInterface creates a new instance of ShipConnectionInfoProviderInterface. 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 (*ShipConnectionInfoProviderInterface) AllowWaitingForTrust ¶
func (_m *ShipConnectionInfoProviderInterface) AllowWaitingForTrust(_a0 string) bool
AllowWaitingForTrust provides a mock function with given fields: _a0
func (*ShipConnectionInfoProviderInterface) EXPECT ¶
func (_m *ShipConnectionInfoProviderInterface) EXPECT() *ShipConnectionInfoProviderInterface_Expecter
func (*ShipConnectionInfoProviderInterface) HandleConnectionClosed ¶
func (_m *ShipConnectionInfoProviderInterface) HandleConnectionClosed(_a0 api.ShipConnectionInterface, _a1 bool)
HandleConnectionClosed provides a mock function with given fields: _a0, _a1
func (*ShipConnectionInfoProviderInterface) HandleShipHandshakeStateUpdate ¶
func (_m *ShipConnectionInfoProviderInterface) HandleShipHandshakeStateUpdate(_a0 string, _a1 model.ShipState)
HandleShipHandshakeStateUpdate provides a mock function with given fields: _a0, _a1
func (*ShipConnectionInfoProviderInterface) IsAutoAcceptEnabled ¶
func (_m *ShipConnectionInfoProviderInterface) IsAutoAcceptEnabled() bool
IsAutoAcceptEnabled provides a mock function with given fields:
func (*ShipConnectionInfoProviderInterface) IsRemoteServiceForSKIPaired ¶
func (_m *ShipConnectionInfoProviderInterface) IsRemoteServiceForSKIPaired(_a0 string) bool
IsRemoteServiceForSKIPaired provides a mock function with given fields: _a0
func (*ShipConnectionInfoProviderInterface) ReportServiceShipID ¶
func (_m *ShipConnectionInfoProviderInterface) ReportServiceShipID(_a0 string, _a1 string)
ReportServiceShipID provides a mock function with given fields: _a0, _a1
func (*ShipConnectionInfoProviderInterface) SetupRemoteDevice ¶
func (_m *ShipConnectionInfoProviderInterface) SetupRemoteDevice(ski string, writeI api.ShipConnectionDataWriterInterface) api.ShipConnectionDataReaderInterface
SetupRemoteDevice provides a mock function with given fields: ski, writeI
type ShipConnectionInfoProviderInterface_AllowWaitingForTrust_Call ¶
ShipConnectionInfoProviderInterface_AllowWaitingForTrust_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AllowWaitingForTrust'
func (*ShipConnectionInfoProviderInterface_AllowWaitingForTrust_Call) Run ¶
func (_c *ShipConnectionInfoProviderInterface_AllowWaitingForTrust_Call) Run(run func(_a0 string)) *ShipConnectionInfoProviderInterface_AllowWaitingForTrust_Call
func (*ShipConnectionInfoProviderInterface_AllowWaitingForTrust_Call) RunAndReturn ¶
func (_c *ShipConnectionInfoProviderInterface_AllowWaitingForTrust_Call) RunAndReturn(run func(string) bool) *ShipConnectionInfoProviderInterface_AllowWaitingForTrust_Call
type ShipConnectionInfoProviderInterface_Expecter ¶
type ShipConnectionInfoProviderInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*ShipConnectionInfoProviderInterface_Expecter) AllowWaitingForTrust ¶
func (_e *ShipConnectionInfoProviderInterface_Expecter) AllowWaitingForTrust(_a0 interface{}) *ShipConnectionInfoProviderInterface_AllowWaitingForTrust_Call
AllowWaitingForTrust is a helper method to define mock.On call
- _a0 string
func (*ShipConnectionInfoProviderInterface_Expecter) HandleConnectionClosed ¶
func (_e *ShipConnectionInfoProviderInterface_Expecter) HandleConnectionClosed(_a0 interface{}, _a1 interface{}) *ShipConnectionInfoProviderInterface_HandleConnectionClosed_Call
HandleConnectionClosed is a helper method to define mock.On call
- _a0 api.ShipConnectionInterface
- _a1 bool
func (*ShipConnectionInfoProviderInterface_Expecter) HandleShipHandshakeStateUpdate ¶
func (_e *ShipConnectionInfoProviderInterface_Expecter) HandleShipHandshakeStateUpdate(_a0 interface{}, _a1 interface{}) *ShipConnectionInfoProviderInterface_HandleShipHandshakeStateUpdate_Call
HandleShipHandshakeStateUpdate is a helper method to define mock.On call
- _a0 string
- _a1 model.ShipState
func (*ShipConnectionInfoProviderInterface_Expecter) IsAutoAcceptEnabled ¶
func (_e *ShipConnectionInfoProviderInterface_Expecter) IsAutoAcceptEnabled() *ShipConnectionInfoProviderInterface_IsAutoAcceptEnabled_Call
IsAutoAcceptEnabled is a helper method to define mock.On call
func (*ShipConnectionInfoProviderInterface_Expecter) IsRemoteServiceForSKIPaired ¶
func (_e *ShipConnectionInfoProviderInterface_Expecter) IsRemoteServiceForSKIPaired(_a0 interface{}) *ShipConnectionInfoProviderInterface_IsRemoteServiceForSKIPaired_Call
IsRemoteServiceForSKIPaired is a helper method to define mock.On call
- _a0 string
func (*ShipConnectionInfoProviderInterface_Expecter) ReportServiceShipID ¶
func (_e *ShipConnectionInfoProviderInterface_Expecter) ReportServiceShipID(_a0 interface{}, _a1 interface{}) *ShipConnectionInfoProviderInterface_ReportServiceShipID_Call
ReportServiceShipID is a helper method to define mock.On call
- _a0 string
- _a1 string
func (*ShipConnectionInfoProviderInterface_Expecter) SetupRemoteDevice ¶
func (_e *ShipConnectionInfoProviderInterface_Expecter) SetupRemoteDevice(ski interface{}, writeI interface{}) *ShipConnectionInfoProviderInterface_SetupRemoteDevice_Call
SetupRemoteDevice is a helper method to define mock.On call
- ski string
- writeI api.ShipConnectionDataWriterInterface
type ShipConnectionInfoProviderInterface_HandleConnectionClosed_Call ¶
ShipConnectionInfoProviderInterface_HandleConnectionClosed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleConnectionClosed'
func (*ShipConnectionInfoProviderInterface_HandleConnectionClosed_Call) Run ¶
func (_c *ShipConnectionInfoProviderInterface_HandleConnectionClosed_Call) Run(run func(_a0 api.ShipConnectionInterface, _a1 bool)) *ShipConnectionInfoProviderInterface_HandleConnectionClosed_Call
func (*ShipConnectionInfoProviderInterface_HandleConnectionClosed_Call) RunAndReturn ¶
func (_c *ShipConnectionInfoProviderInterface_HandleConnectionClosed_Call) RunAndReturn(run func(api.ShipConnectionInterface, bool)) *ShipConnectionInfoProviderInterface_HandleConnectionClosed_Call
type ShipConnectionInfoProviderInterface_HandleShipHandshakeStateUpdate_Call ¶
ShipConnectionInfoProviderInterface_HandleShipHandshakeStateUpdate_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleShipHandshakeStateUpdate'
func (*ShipConnectionInfoProviderInterface_HandleShipHandshakeStateUpdate_Call) RunAndReturn ¶
func (_c *ShipConnectionInfoProviderInterface_HandleShipHandshakeStateUpdate_Call) RunAndReturn(run func(string, model.ShipState)) *ShipConnectionInfoProviderInterface_HandleShipHandshakeStateUpdate_Call
type ShipConnectionInfoProviderInterface_IsAutoAcceptEnabled_Call ¶
ShipConnectionInfoProviderInterface_IsAutoAcceptEnabled_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsAutoAcceptEnabled'
func (*ShipConnectionInfoProviderInterface_IsAutoAcceptEnabled_Call) RunAndReturn ¶
func (_c *ShipConnectionInfoProviderInterface_IsAutoAcceptEnabled_Call) RunAndReturn(run func() bool) *ShipConnectionInfoProviderInterface_IsAutoAcceptEnabled_Call
type ShipConnectionInfoProviderInterface_IsRemoteServiceForSKIPaired_Call ¶
ShipConnectionInfoProviderInterface_IsRemoteServiceForSKIPaired_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsRemoteServiceForSKIPaired'
func (*ShipConnectionInfoProviderInterface_IsRemoteServiceForSKIPaired_Call) RunAndReturn ¶
func (_c *ShipConnectionInfoProviderInterface_IsRemoteServiceForSKIPaired_Call) RunAndReturn(run func(string) bool) *ShipConnectionInfoProviderInterface_IsRemoteServiceForSKIPaired_Call
type ShipConnectionInfoProviderInterface_ReportServiceShipID_Call ¶
ShipConnectionInfoProviderInterface_ReportServiceShipID_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReportServiceShipID'
func (*ShipConnectionInfoProviderInterface_ReportServiceShipID_Call) Run ¶
func (_c *ShipConnectionInfoProviderInterface_ReportServiceShipID_Call) Run(run func(_a0 string, _a1 string)) *ShipConnectionInfoProviderInterface_ReportServiceShipID_Call
func (*ShipConnectionInfoProviderInterface_ReportServiceShipID_Call) RunAndReturn ¶
func (_c *ShipConnectionInfoProviderInterface_ReportServiceShipID_Call) RunAndReturn(run func(string, string)) *ShipConnectionInfoProviderInterface_ReportServiceShipID_Call
type ShipConnectionInfoProviderInterface_SetupRemoteDevice_Call ¶
ShipConnectionInfoProviderInterface_SetupRemoteDevice_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'SetupRemoteDevice'
func (*ShipConnectionInfoProviderInterface_SetupRemoteDevice_Call) Run ¶
func (_c *ShipConnectionInfoProviderInterface_SetupRemoteDevice_Call) Run(run func(ski string, writeI api.ShipConnectionDataWriterInterface)) *ShipConnectionInfoProviderInterface_SetupRemoteDevice_Call
func (*ShipConnectionInfoProviderInterface_SetupRemoteDevice_Call) RunAndReturn ¶
type ShipConnectionInterface ¶
ShipConnectionInterface is an autogenerated mock type for the ShipConnectionInterface type
func NewShipConnectionInterface ¶
func NewShipConnectionInterface(t interface {
mock.TestingT
Cleanup(func())
}) *ShipConnectionInterface
NewShipConnectionInterface creates a new instance of ShipConnectionInterface. 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 (*ShipConnectionInterface) AbortPendingHandshake ¶
func (_m *ShipConnectionInterface) AbortPendingHandshake()
AbortPendingHandshake provides a mock function with given fields:
func (*ShipConnectionInterface) ApprovePendingHandshake ¶
func (_m *ShipConnectionInterface) ApprovePendingHandshake()
ApprovePendingHandshake provides a mock function with given fields:
func (*ShipConnectionInterface) CloseConnection ¶
func (_m *ShipConnectionInterface) CloseConnection(safe bool, code int, reason string)
CloseConnection provides a mock function with given fields: safe, code, reason
func (*ShipConnectionInterface) DataHandler ¶
func (_m *ShipConnectionInterface) DataHandler() api.WebsocketDataWriterInterface
DataHandler provides a mock function with given fields:
func (*ShipConnectionInterface) EXPECT ¶
func (_m *ShipConnectionInterface) EXPECT() *ShipConnectionInterface_Expecter
func (*ShipConnectionInterface) RemoteSKI ¶
func (_m *ShipConnectionInterface) RemoteSKI() string
RemoteSKI provides a mock function with given fields:
func (*ShipConnectionInterface) ShipHandshakeState ¶
func (_m *ShipConnectionInterface) ShipHandshakeState() (model.ShipMessageExchangeState, error)
ShipHandshakeState provides a mock function with given fields:
type ShipConnectionInterface_AbortPendingHandshake_Call ¶
ShipConnectionInterface_AbortPendingHandshake_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'AbortPendingHandshake'
func (*ShipConnectionInterface_AbortPendingHandshake_Call) Run ¶
func (_c *ShipConnectionInterface_AbortPendingHandshake_Call) Run(run func()) *ShipConnectionInterface_AbortPendingHandshake_Call
func (*ShipConnectionInterface_AbortPendingHandshake_Call) RunAndReturn ¶
func (_c *ShipConnectionInterface_AbortPendingHandshake_Call) RunAndReturn(run func()) *ShipConnectionInterface_AbortPendingHandshake_Call
type ShipConnectionInterface_ApprovePendingHandshake_Call ¶
ShipConnectionInterface_ApprovePendingHandshake_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ApprovePendingHandshake'
func (*ShipConnectionInterface_ApprovePendingHandshake_Call) Run ¶
func (_c *ShipConnectionInterface_ApprovePendingHandshake_Call) Run(run func()) *ShipConnectionInterface_ApprovePendingHandshake_Call
func (*ShipConnectionInterface_ApprovePendingHandshake_Call) RunAndReturn ¶
func (_c *ShipConnectionInterface_ApprovePendingHandshake_Call) RunAndReturn(run func()) *ShipConnectionInterface_ApprovePendingHandshake_Call
type ShipConnectionInterface_CloseConnection_Call ¶
ShipConnectionInterface_CloseConnection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CloseConnection'
func (*ShipConnectionInterface_CloseConnection_Call) Return ¶
func (_c *ShipConnectionInterface_CloseConnection_Call) Return() *ShipConnectionInterface_CloseConnection_Call
func (*ShipConnectionInterface_CloseConnection_Call) Run ¶
func (_c *ShipConnectionInterface_CloseConnection_Call) Run(run func(safe bool, code int, reason string)) *ShipConnectionInterface_CloseConnection_Call
func (*ShipConnectionInterface_CloseConnection_Call) RunAndReturn ¶
func (_c *ShipConnectionInterface_CloseConnection_Call) RunAndReturn(run func(bool, int, string)) *ShipConnectionInterface_CloseConnection_Call
type ShipConnectionInterface_DataHandler_Call ¶
ShipConnectionInterface_DataHandler_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'DataHandler'
func (*ShipConnectionInterface_DataHandler_Call) Run ¶
func (_c *ShipConnectionInterface_DataHandler_Call) Run(run func()) *ShipConnectionInterface_DataHandler_Call
func (*ShipConnectionInterface_DataHandler_Call) RunAndReturn ¶
func (_c *ShipConnectionInterface_DataHandler_Call) RunAndReturn(run func() api.WebsocketDataWriterInterface) *ShipConnectionInterface_DataHandler_Call
type ShipConnectionInterface_Expecter ¶
type ShipConnectionInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*ShipConnectionInterface_Expecter) AbortPendingHandshake ¶
func (_e *ShipConnectionInterface_Expecter) AbortPendingHandshake() *ShipConnectionInterface_AbortPendingHandshake_Call
AbortPendingHandshake is a helper method to define mock.On call
func (*ShipConnectionInterface_Expecter) ApprovePendingHandshake ¶
func (_e *ShipConnectionInterface_Expecter) ApprovePendingHandshake() *ShipConnectionInterface_ApprovePendingHandshake_Call
ApprovePendingHandshake is a helper method to define mock.On call
func (*ShipConnectionInterface_Expecter) CloseConnection ¶
func (_e *ShipConnectionInterface_Expecter) CloseConnection(safe interface{}, code interface{}, reason interface{}) *ShipConnectionInterface_CloseConnection_Call
CloseConnection is a helper method to define mock.On call
- safe bool
- code int
- reason string
func (*ShipConnectionInterface_Expecter) DataHandler ¶
func (_e *ShipConnectionInterface_Expecter) DataHandler() *ShipConnectionInterface_DataHandler_Call
DataHandler is a helper method to define mock.On call
func (*ShipConnectionInterface_Expecter) RemoteSKI ¶
func (_e *ShipConnectionInterface_Expecter) RemoteSKI() *ShipConnectionInterface_RemoteSKI_Call
RemoteSKI is a helper method to define mock.On call
func (*ShipConnectionInterface_Expecter) ShipHandshakeState ¶
func (_e *ShipConnectionInterface_Expecter) ShipHandshakeState() *ShipConnectionInterface_ShipHandshakeState_Call
ShipHandshakeState is a helper method to define mock.On call
type ShipConnectionInterface_RemoteSKI_Call ¶
ShipConnectionInterface_RemoteSKI_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'RemoteSKI'
func (*ShipConnectionInterface_RemoteSKI_Call) Return ¶
func (_c *ShipConnectionInterface_RemoteSKI_Call) Return(_a0 string) *ShipConnectionInterface_RemoteSKI_Call
func (*ShipConnectionInterface_RemoteSKI_Call) Run ¶
func (_c *ShipConnectionInterface_RemoteSKI_Call) Run(run func()) *ShipConnectionInterface_RemoteSKI_Call
func (*ShipConnectionInterface_RemoteSKI_Call) RunAndReturn ¶
func (_c *ShipConnectionInterface_RemoteSKI_Call) RunAndReturn(run func() string) *ShipConnectionInterface_RemoteSKI_Call
type ShipConnectionInterface_ShipHandshakeState_Call ¶
ShipConnectionInterface_ShipHandshakeState_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ShipHandshakeState'
func (*ShipConnectionInterface_ShipHandshakeState_Call) Return ¶
func (_c *ShipConnectionInterface_ShipHandshakeState_Call) Return(_a0 model.ShipMessageExchangeState, _a1 error) *ShipConnectionInterface_ShipHandshakeState_Call
func (*ShipConnectionInterface_ShipHandshakeState_Call) Run ¶
func (_c *ShipConnectionInterface_ShipHandshakeState_Call) Run(run func()) *ShipConnectionInterface_ShipHandshakeState_Call
func (*ShipConnectionInterface_ShipHandshakeState_Call) RunAndReturn ¶
func (_c *ShipConnectionInterface_ShipHandshakeState_Call) RunAndReturn(run func() (model.ShipMessageExchangeState, error)) *ShipConnectionInterface_ShipHandshakeState_Call
type WebsocketDataReaderInterface ¶
WebsocketDataReaderInterface is an autogenerated mock type for the WebsocketDataReaderInterface type
func NewWebsocketDataReaderInterface ¶
func NewWebsocketDataReaderInterface(t interface {
mock.TestingT
Cleanup(func())
}) *WebsocketDataReaderInterface
NewWebsocketDataReaderInterface creates a new instance of WebsocketDataReaderInterface. 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 (*WebsocketDataReaderInterface) EXPECT ¶
func (_m *WebsocketDataReaderInterface) EXPECT() *WebsocketDataReaderInterface_Expecter
func (*WebsocketDataReaderInterface) HandleIncomingWebsocketMessage ¶
func (_m *WebsocketDataReaderInterface) HandleIncomingWebsocketMessage(_a0 []byte)
HandleIncomingWebsocketMessage provides a mock function with given fields: _a0
func (*WebsocketDataReaderInterface) ReportConnectionError ¶
func (_m *WebsocketDataReaderInterface) ReportConnectionError(_a0 error)
ReportConnectionError provides a mock function with given fields: _a0
type WebsocketDataReaderInterface_Expecter ¶
type WebsocketDataReaderInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*WebsocketDataReaderInterface_Expecter) HandleIncomingWebsocketMessage ¶
func (_e *WebsocketDataReaderInterface_Expecter) HandleIncomingWebsocketMessage(_a0 interface{}) *WebsocketDataReaderInterface_HandleIncomingWebsocketMessage_Call
HandleIncomingWebsocketMessage is a helper method to define mock.On call
- _a0 []byte
func (*WebsocketDataReaderInterface_Expecter) ReportConnectionError ¶
func (_e *WebsocketDataReaderInterface_Expecter) ReportConnectionError(_a0 interface{}) *WebsocketDataReaderInterface_ReportConnectionError_Call
ReportConnectionError is a helper method to define mock.On call
- _a0 error
type WebsocketDataReaderInterface_HandleIncomingWebsocketMessage_Call ¶
WebsocketDataReaderInterface_HandleIncomingWebsocketMessage_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'HandleIncomingWebsocketMessage'
func (*WebsocketDataReaderInterface_HandleIncomingWebsocketMessage_Call) Run ¶
func (_c *WebsocketDataReaderInterface_HandleIncomingWebsocketMessage_Call) Run(run func(_a0 []byte)) *WebsocketDataReaderInterface_HandleIncomingWebsocketMessage_Call
func (*WebsocketDataReaderInterface_HandleIncomingWebsocketMessage_Call) RunAndReturn ¶
func (_c *WebsocketDataReaderInterface_HandleIncomingWebsocketMessage_Call) RunAndReturn(run func([]byte)) *WebsocketDataReaderInterface_HandleIncomingWebsocketMessage_Call
type WebsocketDataReaderInterface_ReportConnectionError_Call ¶
WebsocketDataReaderInterface_ReportConnectionError_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'ReportConnectionError'
func (*WebsocketDataReaderInterface_ReportConnectionError_Call) Run ¶
func (_c *WebsocketDataReaderInterface_ReportConnectionError_Call) Run(run func(_a0 error)) *WebsocketDataReaderInterface_ReportConnectionError_Call
func (*WebsocketDataReaderInterface_ReportConnectionError_Call) RunAndReturn ¶
func (_c *WebsocketDataReaderInterface_ReportConnectionError_Call) RunAndReturn(run func(error)) *WebsocketDataReaderInterface_ReportConnectionError_Call
type WebsocketDataWriterInterface ¶
WebsocketDataWriterInterface is an autogenerated mock type for the WebsocketDataWriterInterface type
func NewWebsocketDataWriterInterface ¶
func NewWebsocketDataWriterInterface(t interface {
mock.TestingT
Cleanup(func())
}) *WebsocketDataWriterInterface
NewWebsocketDataWriterInterface creates a new instance of WebsocketDataWriterInterface. 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 (*WebsocketDataWriterInterface) CloseDataConnection ¶
func (_m *WebsocketDataWriterInterface) CloseDataConnection(closeCode int, reason string)
CloseDataConnection provides a mock function with given fields: closeCode, reason
func (*WebsocketDataWriterInterface) EXPECT ¶
func (_m *WebsocketDataWriterInterface) EXPECT() *WebsocketDataWriterInterface_Expecter
func (*WebsocketDataWriterInterface) InitDataProcessing ¶
func (_m *WebsocketDataWriterInterface) InitDataProcessing(_a0 api.WebsocketDataReaderInterface)
InitDataProcessing provides a mock function with given fields: _a0
func (*WebsocketDataWriterInterface) IsDataConnectionClosed ¶
func (_m *WebsocketDataWriterInterface) IsDataConnectionClosed() (bool, error)
IsDataConnectionClosed provides a mock function with given fields:
func (*WebsocketDataWriterInterface) WriteMessageToWebsocketConnection ¶
func (_m *WebsocketDataWriterInterface) WriteMessageToWebsocketConnection(_a0 []byte) error
WriteMessageToWebsocketConnection provides a mock function with given fields: _a0
type WebsocketDataWriterInterface_CloseDataConnection_Call ¶
WebsocketDataWriterInterface_CloseDataConnection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'CloseDataConnection'
func (*WebsocketDataWriterInterface_CloseDataConnection_Call) Run ¶
func (_c *WebsocketDataWriterInterface_CloseDataConnection_Call) Run(run func(closeCode int, reason string)) *WebsocketDataWriterInterface_CloseDataConnection_Call
func (*WebsocketDataWriterInterface_CloseDataConnection_Call) RunAndReturn ¶
func (_c *WebsocketDataWriterInterface_CloseDataConnection_Call) RunAndReturn(run func(int, string)) *WebsocketDataWriterInterface_CloseDataConnection_Call
type WebsocketDataWriterInterface_Expecter ¶
type WebsocketDataWriterInterface_Expecter struct {
// contains filtered or unexported fields
}
func (*WebsocketDataWriterInterface_Expecter) CloseDataConnection ¶
func (_e *WebsocketDataWriterInterface_Expecter) CloseDataConnection(closeCode interface{}, reason interface{}) *WebsocketDataWriterInterface_CloseDataConnection_Call
CloseDataConnection is a helper method to define mock.On call
- closeCode int
- reason string
func (*WebsocketDataWriterInterface_Expecter) InitDataProcessing ¶
func (_e *WebsocketDataWriterInterface_Expecter) InitDataProcessing(_a0 interface{}) *WebsocketDataWriterInterface_InitDataProcessing_Call
InitDataProcessing is a helper method to define mock.On call
- _a0 api.WebsocketDataReaderInterface
func (*WebsocketDataWriterInterface_Expecter) IsDataConnectionClosed ¶
func (_e *WebsocketDataWriterInterface_Expecter) IsDataConnectionClosed() *WebsocketDataWriterInterface_IsDataConnectionClosed_Call
IsDataConnectionClosed is a helper method to define mock.On call
func (*WebsocketDataWriterInterface_Expecter) WriteMessageToWebsocketConnection ¶
func (_e *WebsocketDataWriterInterface_Expecter) WriteMessageToWebsocketConnection(_a0 interface{}) *WebsocketDataWriterInterface_WriteMessageToWebsocketConnection_Call
WriteMessageToWebsocketConnection is a helper method to define mock.On call
- _a0 []byte
type WebsocketDataWriterInterface_InitDataProcessing_Call ¶
WebsocketDataWriterInterface_InitDataProcessing_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'InitDataProcessing'
func (*WebsocketDataWriterInterface_InitDataProcessing_Call) Run ¶
func (_c *WebsocketDataWriterInterface_InitDataProcessing_Call) Run(run func(_a0 api.WebsocketDataReaderInterface)) *WebsocketDataWriterInterface_InitDataProcessing_Call
func (*WebsocketDataWriterInterface_InitDataProcessing_Call) RunAndReturn ¶
func (_c *WebsocketDataWriterInterface_InitDataProcessing_Call) RunAndReturn(run func(api.WebsocketDataReaderInterface)) *WebsocketDataWriterInterface_InitDataProcessing_Call
type WebsocketDataWriterInterface_IsDataConnectionClosed_Call ¶
WebsocketDataWriterInterface_IsDataConnectionClosed_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'IsDataConnectionClosed'
func (*WebsocketDataWriterInterface_IsDataConnectionClosed_Call) Return ¶
func (_c *WebsocketDataWriterInterface_IsDataConnectionClosed_Call) Return(_a0 bool, _a1 error) *WebsocketDataWriterInterface_IsDataConnectionClosed_Call
func (*WebsocketDataWriterInterface_IsDataConnectionClosed_Call) Run ¶
func (_c *WebsocketDataWriterInterface_IsDataConnectionClosed_Call) Run(run func()) *WebsocketDataWriterInterface_IsDataConnectionClosed_Call
func (*WebsocketDataWriterInterface_IsDataConnectionClosed_Call) RunAndReturn ¶
func (_c *WebsocketDataWriterInterface_IsDataConnectionClosed_Call) RunAndReturn(run func() (bool, error)) *WebsocketDataWriterInterface_IsDataConnectionClosed_Call
type WebsocketDataWriterInterface_WriteMessageToWebsocketConnection_Call ¶
WebsocketDataWriterInterface_WriteMessageToWebsocketConnection_Call is a *mock.Call that shadows Run/Return methods with type explicit version for method 'WriteMessageToWebsocketConnection'
func (*WebsocketDataWriterInterface_WriteMessageToWebsocketConnection_Call) Run ¶
func (_c *WebsocketDataWriterInterface_WriteMessageToWebsocketConnection_Call) Run(run func(_a0 []byte)) *WebsocketDataWriterInterface_WriteMessageToWebsocketConnection_Call
func (*WebsocketDataWriterInterface_WriteMessageToWebsocketConnection_Call) RunAndReturn ¶
func (_c *WebsocketDataWriterInterface_WriteMessageToWebsocketConnection_Call) RunAndReturn(run func([]byte) error) *WebsocketDataWriterInterface_WriteMessageToWebsocketConnection_Call
Source Files
¶
- HubInterface.go
- HubReaderInterface.go
- LoggingInterface.go
- MdnsInterface.go
- MdnsProviderInterface.go
- MdnsReportInterface.go
- MdnsResolveCB.go
- ShipConnectionDataReaderInterface.go
- ShipConnectionDataWriterInterface.go
- ShipConnectionInfoProviderInterface.go
- ShipConnectionInterface.go
- WebsocketDataReaderInterface.go
- WebsocketDataWriterInterface.go
- mockgen_api.go