Documentation ¶
Overview ¶
Package mock_ble is a generated GoMock package.
Index ¶
- type MockAddr
- type MockAddrMockRecorder
- type MockAdvertisement
- func (m *MockAdvertisement) Addr() ble.Addr
- func (m *MockAdvertisement) Connectable() bool
- func (m *MockAdvertisement) EXPECT() *MockAdvertisementMockRecorder
- func (m *MockAdvertisement) LocalName() string
- func (m *MockAdvertisement) ManufacturerData() []byte
- func (m *MockAdvertisement) OverflowService() []ble.UUID
- func (m *MockAdvertisement) RSSI() int
- func (m *MockAdvertisement) ServiceData() []ble.ServiceData
- func (m *MockAdvertisement) Services() []ble.UUID
- func (m *MockAdvertisement) SolicitedService() []ble.UUID
- func (m *MockAdvertisement) TxPowerLevel() int
- type MockAdvertisementMockRecorder
- func (mr *MockAdvertisementMockRecorder) Addr() *gomock.Call
- func (mr *MockAdvertisementMockRecorder) Connectable() *gomock.Call
- func (mr *MockAdvertisementMockRecorder) LocalName() *gomock.Call
- func (mr *MockAdvertisementMockRecorder) ManufacturerData() *gomock.Call
- func (mr *MockAdvertisementMockRecorder) OverflowService() *gomock.Call
- func (mr *MockAdvertisementMockRecorder) RSSI() *gomock.Call
- func (mr *MockAdvertisementMockRecorder) ServiceData() *gomock.Call
- func (mr *MockAdvertisementMockRecorder) Services() *gomock.Call
- func (mr *MockAdvertisementMockRecorder) SolicitedService() *gomock.Call
- func (mr *MockAdvertisementMockRecorder) TxPowerLevel() *gomock.Call
- type MockDevice
- func (m *MockDevice) AddService(arg0 *ble.Service) error
- func (m *MockDevice) Advertise(arg0 context.Context, arg1 ble.Advertisement) error
- func (m *MockDevice) AdvertiseIBeacon(arg0 context.Context, arg1 ble.UUID, arg2, arg3 uint16, arg4 int8) error
- func (m *MockDevice) AdvertiseIBeaconData(arg0 context.Context, arg1 []byte) error
- func (m *MockDevice) AdvertiseMfgData(arg0 context.Context, arg1 uint16, arg2 []byte) error
- func (m *MockDevice) AdvertiseNameAndServices(arg0 context.Context, arg1 string, arg2 ...ble.UUID) error
- func (m *MockDevice) AdvertiseServiceData16(arg0 context.Context, arg1 uint16, arg2 []byte) error
- func (m *MockDevice) Dial(arg0 context.Context, arg1 ble.Addr) (ble.Client, error)
- func (m *MockDevice) EXPECT() *MockDeviceMockRecorder
- func (m *MockDevice) RemoveAllServices() error
- func (m *MockDevice) Scan(arg0 context.Context, arg1 bool, arg2 ble.AdvHandler) error
- func (m *MockDevice) SetServices(arg0 []*ble.Service) error
- func (m *MockDevice) Stop() error
- type MockDeviceMockRecorder
- func (mr *MockDeviceMockRecorder) AddService(arg0 interface{}) *gomock.Call
- func (mr *MockDeviceMockRecorder) Advertise(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDeviceMockRecorder) AdvertiseIBeacon(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
- func (mr *MockDeviceMockRecorder) AdvertiseIBeaconData(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDeviceMockRecorder) AdvertiseMfgData(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockDeviceMockRecorder) AdvertiseNameAndServices(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
- func (mr *MockDeviceMockRecorder) AdvertiseServiceData16(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockDeviceMockRecorder) Dial(arg0, arg1 interface{}) *gomock.Call
- func (mr *MockDeviceMockRecorder) RemoveAllServices() *gomock.Call
- func (mr *MockDeviceMockRecorder) Scan(arg0, arg1, arg2 interface{}) *gomock.Call
- func (mr *MockDeviceMockRecorder) SetServices(arg0 interface{}) *gomock.Call
- func (mr *MockDeviceMockRecorder) Stop() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockAddr ¶
type MockAddr struct {
// contains filtered or unexported fields
}
MockAddr is a mock of Addr interface.
func NewMockAddr ¶
func NewMockAddr(ctrl *gomock.Controller) *MockAddr
NewMockAddr creates a new mock instance.
func (*MockAddr) EXPECT ¶
func (m *MockAddr) EXPECT() *MockAddrMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
type MockAddrMockRecorder ¶
type MockAddrMockRecorder struct {
// contains filtered or unexported fields
}
MockAddrMockRecorder is the mock recorder for MockAddr.
func (*MockAddrMockRecorder) String ¶
func (mr *MockAddrMockRecorder) String() *gomock.Call
String indicates an expected call of String.
type MockAdvertisement ¶
type MockAdvertisement struct {
// contains filtered or unexported fields
}
MockAdvertisement is a mock of Advertisement interface.
func NewMockAdvertisement ¶
func NewMockAdvertisement(ctrl *gomock.Controller) *MockAdvertisement
NewMockAdvertisement creates a new mock instance.
func (*MockAdvertisement) Addr ¶
func (m *MockAdvertisement) Addr() ble.Addr
Addr mocks base method.
func (*MockAdvertisement) Connectable ¶
func (m *MockAdvertisement) Connectable() bool
Connectable mocks base method.
func (*MockAdvertisement) EXPECT ¶
func (m *MockAdvertisement) EXPECT() *MockAdvertisementMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockAdvertisement) LocalName ¶
func (m *MockAdvertisement) LocalName() string
LocalName mocks base method.
func (*MockAdvertisement) ManufacturerData ¶
func (m *MockAdvertisement) ManufacturerData() []byte
ManufacturerData mocks base method.
func (*MockAdvertisement) OverflowService ¶
func (m *MockAdvertisement) OverflowService() []ble.UUID
OverflowService mocks base method.
func (*MockAdvertisement) ServiceData ¶
func (m *MockAdvertisement) ServiceData() []ble.ServiceData
ServiceData mocks base method.
func (*MockAdvertisement) Services ¶
func (m *MockAdvertisement) Services() []ble.UUID
Services mocks base method.
func (*MockAdvertisement) SolicitedService ¶
func (m *MockAdvertisement) SolicitedService() []ble.UUID
SolicitedService mocks base method.
func (*MockAdvertisement) TxPowerLevel ¶
func (m *MockAdvertisement) TxPowerLevel() int
TxPowerLevel mocks base method.
type MockAdvertisementMockRecorder ¶
type MockAdvertisementMockRecorder struct {
// contains filtered or unexported fields
}
MockAdvertisementMockRecorder is the mock recorder for MockAdvertisement.
func (*MockAdvertisementMockRecorder) Addr ¶
func (mr *MockAdvertisementMockRecorder) Addr() *gomock.Call
Addr indicates an expected call of Addr.
func (*MockAdvertisementMockRecorder) Connectable ¶
func (mr *MockAdvertisementMockRecorder) Connectable() *gomock.Call
Connectable indicates an expected call of Connectable.
func (*MockAdvertisementMockRecorder) LocalName ¶
func (mr *MockAdvertisementMockRecorder) LocalName() *gomock.Call
LocalName indicates an expected call of LocalName.
func (*MockAdvertisementMockRecorder) ManufacturerData ¶
func (mr *MockAdvertisementMockRecorder) ManufacturerData() *gomock.Call
ManufacturerData indicates an expected call of ManufacturerData.
func (*MockAdvertisementMockRecorder) OverflowService ¶
func (mr *MockAdvertisementMockRecorder) OverflowService() *gomock.Call
OverflowService indicates an expected call of OverflowService.
func (*MockAdvertisementMockRecorder) RSSI ¶
func (mr *MockAdvertisementMockRecorder) RSSI() *gomock.Call
RSSI indicates an expected call of RSSI.
func (*MockAdvertisementMockRecorder) ServiceData ¶
func (mr *MockAdvertisementMockRecorder) ServiceData() *gomock.Call
ServiceData indicates an expected call of ServiceData.
func (*MockAdvertisementMockRecorder) Services ¶
func (mr *MockAdvertisementMockRecorder) Services() *gomock.Call
Services indicates an expected call of Services.
func (*MockAdvertisementMockRecorder) SolicitedService ¶
func (mr *MockAdvertisementMockRecorder) SolicitedService() *gomock.Call
SolicitedService indicates an expected call of SolicitedService.
func (*MockAdvertisementMockRecorder) TxPowerLevel ¶
func (mr *MockAdvertisementMockRecorder) TxPowerLevel() *gomock.Call
TxPowerLevel indicates an expected call of TxPowerLevel.
type MockDevice ¶
type MockDevice struct {
// contains filtered or unexported fields
}
MockDevice is a mock of Device interface.
func NewMockDevice ¶
func NewMockDevice(ctrl *gomock.Controller) *MockDevice
NewMockDevice creates a new mock instance.
func (*MockDevice) AddService ¶
func (m *MockDevice) AddService(arg0 *ble.Service) error
AddService mocks base method.
func (*MockDevice) Advertise ¶
func (m *MockDevice) Advertise(arg0 context.Context, arg1 ble.Advertisement) error
Advertise mocks base method.
func (*MockDevice) AdvertiseIBeacon ¶
func (m *MockDevice) AdvertiseIBeacon(arg0 context.Context, arg1 ble.UUID, arg2, arg3 uint16, arg4 int8) error
AdvertiseIBeacon mocks base method.
func (*MockDevice) AdvertiseIBeaconData ¶
func (m *MockDevice) AdvertiseIBeaconData(arg0 context.Context, arg1 []byte) error
AdvertiseIBeaconData mocks base method.
func (*MockDevice) AdvertiseMfgData ¶
AdvertiseMfgData mocks base method.
func (*MockDevice) AdvertiseNameAndServices ¶
func (m *MockDevice) AdvertiseNameAndServices(arg0 context.Context, arg1 string, arg2 ...ble.UUID) error
AdvertiseNameAndServices mocks base method.
func (*MockDevice) AdvertiseServiceData16 ¶
AdvertiseServiceData16 mocks base method.
func (*MockDevice) EXPECT ¶
func (m *MockDevice) EXPECT() *MockDeviceMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockDevice) RemoveAllServices ¶
func (m *MockDevice) RemoveAllServices() error
RemoveAllServices mocks base method.
func (*MockDevice) Scan ¶
func (m *MockDevice) Scan(arg0 context.Context, arg1 bool, arg2 ble.AdvHandler) error
Scan mocks base method.
func (*MockDevice) SetServices ¶
func (m *MockDevice) SetServices(arg0 []*ble.Service) error
SetServices mocks base method.
type MockDeviceMockRecorder ¶
type MockDeviceMockRecorder struct {
// contains filtered or unexported fields
}
MockDeviceMockRecorder is the mock recorder for MockDevice.
func (*MockDeviceMockRecorder) AddService ¶
func (mr *MockDeviceMockRecorder) AddService(arg0 interface{}) *gomock.Call
AddService indicates an expected call of AddService.
func (*MockDeviceMockRecorder) Advertise ¶
func (mr *MockDeviceMockRecorder) Advertise(arg0, arg1 interface{}) *gomock.Call
Advertise indicates an expected call of Advertise.
func (*MockDeviceMockRecorder) AdvertiseIBeacon ¶
func (mr *MockDeviceMockRecorder) AdvertiseIBeacon(arg0, arg1, arg2, arg3, arg4 interface{}) *gomock.Call
AdvertiseIBeacon indicates an expected call of AdvertiseIBeacon.
func (*MockDeviceMockRecorder) AdvertiseIBeaconData ¶
func (mr *MockDeviceMockRecorder) AdvertiseIBeaconData(arg0, arg1 interface{}) *gomock.Call
AdvertiseIBeaconData indicates an expected call of AdvertiseIBeaconData.
func (*MockDeviceMockRecorder) AdvertiseMfgData ¶
func (mr *MockDeviceMockRecorder) AdvertiseMfgData(arg0, arg1, arg2 interface{}) *gomock.Call
AdvertiseMfgData indicates an expected call of AdvertiseMfgData.
func (*MockDeviceMockRecorder) AdvertiseNameAndServices ¶
func (mr *MockDeviceMockRecorder) AdvertiseNameAndServices(arg0, arg1 interface{}, arg2 ...interface{}) *gomock.Call
AdvertiseNameAndServices indicates an expected call of AdvertiseNameAndServices.
func (*MockDeviceMockRecorder) AdvertiseServiceData16 ¶
func (mr *MockDeviceMockRecorder) AdvertiseServiceData16(arg0, arg1, arg2 interface{}) *gomock.Call
AdvertiseServiceData16 indicates an expected call of AdvertiseServiceData16.
func (*MockDeviceMockRecorder) Dial ¶
func (mr *MockDeviceMockRecorder) Dial(arg0, arg1 interface{}) *gomock.Call
Dial indicates an expected call of Dial.
func (*MockDeviceMockRecorder) RemoveAllServices ¶
func (mr *MockDeviceMockRecorder) RemoveAllServices() *gomock.Call
RemoveAllServices indicates an expected call of RemoveAllServices.
func (*MockDeviceMockRecorder) Scan ¶
func (mr *MockDeviceMockRecorder) Scan(arg0, arg1, arg2 interface{}) *gomock.Call
Scan indicates an expected call of Scan.
func (*MockDeviceMockRecorder) SetServices ¶
func (mr *MockDeviceMockRecorder) SetServices(arg0 interface{}) *gomock.Call
SetServices indicates an expected call of SetServices.
func (*MockDeviceMockRecorder) Stop ¶
func (mr *MockDeviceMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.