Documentation ¶
Overview ¶
Package mock_client is a generated GoMock package.
Index ¶
- type MockJimiIotHub
- func (m *MockJimiIotHub) Client() *resty.Client
- func (m *MockJimiIotHub) Config(canModify bool) *client.IotHubConfig
- func (m *MockJimiIotHub) DeviceInstructionRequest(ctx context.Context, imei, command string) (*client.InstructRequest, error)
- func (m *MockJimiIotHub) EXPECT() *MockJimiIotHubMockRecorder
- func (m *MockJimiIotHub) EndpointURL() *url.URL
- func (m *MockJimiIotHub) GenerateDeviceConfigLinks(rtmpPrefix string) *client.DeviceConfigLinks
- func (m *MockJimiIotHub) GenerateFLVHistoryLink(secure bool, channel int, imei string) (string, error)
- func (m *MockJimiIotHub) GenerateFLVReplayLink(secure bool, prefix, imei string) (string, error)
- func (m *MockJimiIotHub) GenerateFlvLiveLink(secure bool, prefix string, channel int, imei string) (string, error)
- func (m *MockJimiIotHub) GenerateRtmpLiveLink(secure bool, prefix string, channel int, imei string) (string, error)
- func (m *MockJimiIotHub) GenerateVideoLinks(secure bool, prefix string, channel int, imei string) (*client.VideoLinks, error)
- func (m *MockJimiIotHub) GetEndpointHost() string
- func (m *MockJimiIotHub) HistoryPlaybackControlRequest(ctx context.Context, imei string, deviceModel client.DeviceModel, ...) (*client.InstructRequest, error)
- func (m *MockJimiIotHub) HistoryVideoPlaybackRequest(ctx context.Context, imei string, deviceModel client.DeviceModel, ...) (*client.InstructRequest, error)
- func (m *MockJimiIotHub) ListAVResourcesRequest(ctx context.Context, imei string, deviceModel client.DeviceModel, ...) (*client.InstructRequest, error)
- func (m *MockJimiIotHub) RealTimeAVControlRequest(ctx context.Context, imei string, deviceModel client.DeviceModel, ...) (*client.InstructRequest, error)
- func (m *MockJimiIotHub) RealTimeAVRequest(ctx context.Context, imei string, deviceModel client.DeviceModel, ...) (*client.InstructRequest, error)
- func (m *MockJimiIotHub) SendDeviceInstruction(ctx context.Context, request *client.InstructRequest) (*client.Response, error)
- func (m *MockJimiIotHub) Stop()
- type MockJimiIotHubMockRecorder
- func (mr *MockJimiIotHubMockRecorder) Client() *gomock.Call
- func (mr *MockJimiIotHubMockRecorder) Config(canModify interface{}) *gomock.Call
- func (mr *MockJimiIotHubMockRecorder) DeviceInstructionRequest(ctx, imei, command interface{}) *gomock.Call
- func (mr *MockJimiIotHubMockRecorder) EndpointURL() *gomock.Call
- func (mr *MockJimiIotHubMockRecorder) GenerateDeviceConfigLinks(rtmpPrefix interface{}) *gomock.Call
- func (mr *MockJimiIotHubMockRecorder) GenerateFLVHistoryLink(secure, channel, imei interface{}) *gomock.Call
- func (mr *MockJimiIotHubMockRecorder) GenerateFLVReplayLink(secure, prefix, imei interface{}) *gomock.Call
- func (mr *MockJimiIotHubMockRecorder) GenerateFlvLiveLink(secure, prefix, channel, imei interface{}) *gomock.Call
- func (mr *MockJimiIotHubMockRecorder) GenerateRtmpLiveLink(secure, prefix, channel, imei interface{}) *gomock.Call
- func (mr *MockJimiIotHubMockRecorder) GenerateVideoLinks(secure, prefix, channel, imei interface{}) *gomock.Call
- func (mr *MockJimiIotHubMockRecorder) GetEndpointHost() *gomock.Call
- func (mr *MockJimiIotHubMockRecorder) HistoryPlaybackControlRequest(ctx, imei, deviceModel, cmdContent interface{}) *gomock.Call
- func (mr *MockJimiIotHubMockRecorder) HistoryVideoPlaybackRequest(ctx, imei, deviceModel, cmdContent interface{}) *gomock.Call
- func (mr *MockJimiIotHubMockRecorder) ListAVResourcesRequest(ctx, imei, deviceModel, cmdContent interface{}) *gomock.Call
- func (mr *MockJimiIotHubMockRecorder) RealTimeAVControlRequest(ctx, imei, deviceModel, cmdContent interface{}) *gomock.Call
- func (mr *MockJimiIotHubMockRecorder) RealTimeAVRequest(ctx, imei, deviceModel, cmdContent interface{}) *gomock.Call
- func (mr *MockJimiIotHubMockRecorder) SendDeviceInstruction(ctx, request interface{}) *gomock.Call
- func (mr *MockJimiIotHubMockRecorder) Stop() *gomock.Call
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type MockJimiIotHub ¶
type MockJimiIotHub struct {
// contains filtered or unexported fields
}
MockJimiIotHub is a mock of JimiIotHub interface.
func NewMockJimiIotHub ¶
func NewMockJimiIotHub(ctrl *gomock.Controller) *MockJimiIotHub
NewMockJimiIotHub creates a new mock instance.
func (*MockJimiIotHub) Client ¶
func (m *MockJimiIotHub) Client() *resty.Client
Client mocks base method.
func (*MockJimiIotHub) Config ¶
func (m *MockJimiIotHub) Config(canModify bool) *client.IotHubConfig
Config mocks base method.
func (*MockJimiIotHub) DeviceInstructionRequest ¶
func (m *MockJimiIotHub) DeviceInstructionRequest(ctx context.Context, imei, command string) (*client.InstructRequest, error)
DeviceInstructionRequest mocks base method.
func (*MockJimiIotHub) EXPECT ¶
func (m *MockJimiIotHub) EXPECT() *MockJimiIotHubMockRecorder
EXPECT returns an object that allows the caller to indicate expected use.
func (*MockJimiIotHub) EndpointURL ¶
func (m *MockJimiIotHub) EndpointURL() *url.URL
EndpointURL mocks base method.
func (*MockJimiIotHub) GenerateDeviceConfigLinks ¶
func (m *MockJimiIotHub) GenerateDeviceConfigLinks(rtmpPrefix string) *client.DeviceConfigLinks
GenerateDeviceConfigLinks mocks base method.
func (*MockJimiIotHub) GenerateFLVHistoryLink ¶
func (m *MockJimiIotHub) GenerateFLVHistoryLink(secure bool, channel int, imei string) (string, error)
GenerateFLVHistoryLink mocks base method.
func (*MockJimiIotHub) GenerateFLVReplayLink ¶
func (m *MockJimiIotHub) GenerateFLVReplayLink(secure bool, prefix, imei string) (string, error)
GenerateFLVReplayLink mocks base method.
func (*MockJimiIotHub) GenerateFlvLiveLink ¶
func (m *MockJimiIotHub) GenerateFlvLiveLink(secure bool, prefix string, channel int, imei string) (string, error)
GenerateFlvLiveLink mocks base method.
func (*MockJimiIotHub) GenerateRtmpLiveLink ¶
func (m *MockJimiIotHub) GenerateRtmpLiveLink(secure bool, prefix string, channel int, imei string) (string, error)
GenerateRtmpLiveLink mocks base method.
func (*MockJimiIotHub) GenerateVideoLinks ¶
func (m *MockJimiIotHub) GenerateVideoLinks(secure bool, prefix string, channel int, imei string) (*client.VideoLinks, error)
GenerateVideoLinks mocks base method.
func (*MockJimiIotHub) GetEndpointHost ¶
func (m *MockJimiIotHub) GetEndpointHost() string
GetEndpointHost mocks base method.
func (*MockJimiIotHub) HistoryPlaybackControlRequest ¶
func (m *MockJimiIotHub) HistoryPlaybackControlRequest(ctx context.Context, imei string, deviceModel client.DeviceModel, cmdContent *client.PlaybackControlCmdContent) (*client.InstructRequest, error)
HistoryPlaybackControlRequest mocks base method.
func (*MockJimiIotHub) HistoryVideoPlaybackRequest ¶
func (m *MockJimiIotHub) HistoryVideoPlaybackRequest(ctx context.Context, imei string, deviceModel client.DeviceModel, cmdContent *client.PlaybackCmdContent) (*client.InstructRequest, error)
HistoryVideoPlaybackRequest mocks base method.
func (*MockJimiIotHub) ListAVResourcesRequest ¶
func (m *MockJimiIotHub) ListAVResourcesRequest(ctx context.Context, imei string, deviceModel client.DeviceModel, cmdContent *client.AVResourceListCmdContent) (*client.InstructRequest, error)
ListAVResourcesRequest mocks base method.
func (*MockJimiIotHub) RealTimeAVControlRequest ¶
func (m *MockJimiIotHub) RealTimeAVControlRequest(ctx context.Context, imei string, deviceModel client.DeviceModel, cmdContent *client.RealTimeControlCmdContent) (*client.InstructRequest, error)
RealTimeAVControlRequest mocks base method.
func (*MockJimiIotHub) RealTimeAVRequest ¶
func (m *MockJimiIotHub) RealTimeAVRequest(ctx context.Context, imei string, deviceModel client.DeviceModel, cmdContent *client.RealTimeCmdContent) (*client.InstructRequest, error)
RealTimeAVRequest mocks base method.
func (*MockJimiIotHub) SendDeviceInstruction ¶
func (m *MockJimiIotHub) SendDeviceInstruction(ctx context.Context, request *client.InstructRequest) (*client.Response, error)
SendDeviceInstruction mocks base method.
type MockJimiIotHubMockRecorder ¶
type MockJimiIotHubMockRecorder struct {
// contains filtered or unexported fields
}
MockJimiIotHubMockRecorder is the mock recorder for MockJimiIotHub.
func (*MockJimiIotHubMockRecorder) Client ¶
func (mr *MockJimiIotHubMockRecorder) Client() *gomock.Call
Client indicates an expected call of Client.
func (*MockJimiIotHubMockRecorder) Config ¶
func (mr *MockJimiIotHubMockRecorder) Config(canModify interface{}) *gomock.Call
Config indicates an expected call of Config.
func (*MockJimiIotHubMockRecorder) DeviceInstructionRequest ¶
func (mr *MockJimiIotHubMockRecorder) DeviceInstructionRequest(ctx, imei, command interface{}) *gomock.Call
DeviceInstructionRequest indicates an expected call of DeviceInstructionRequest.
func (*MockJimiIotHubMockRecorder) EndpointURL ¶
func (mr *MockJimiIotHubMockRecorder) EndpointURL() *gomock.Call
EndpointURL indicates an expected call of EndpointURL.
func (*MockJimiIotHubMockRecorder) GenerateDeviceConfigLinks ¶
func (mr *MockJimiIotHubMockRecorder) GenerateDeviceConfigLinks(rtmpPrefix interface{}) *gomock.Call
GenerateDeviceConfigLinks indicates an expected call of GenerateDeviceConfigLinks.
func (*MockJimiIotHubMockRecorder) GenerateFLVHistoryLink ¶
func (mr *MockJimiIotHubMockRecorder) GenerateFLVHistoryLink(secure, channel, imei interface{}) *gomock.Call
GenerateFLVHistoryLink indicates an expected call of GenerateFLVHistoryLink.
func (*MockJimiIotHubMockRecorder) GenerateFLVReplayLink ¶
func (mr *MockJimiIotHubMockRecorder) GenerateFLVReplayLink(secure, prefix, imei interface{}) *gomock.Call
GenerateFLVReplayLink indicates an expected call of GenerateFLVReplayLink.
func (*MockJimiIotHubMockRecorder) GenerateFlvLiveLink ¶
func (mr *MockJimiIotHubMockRecorder) GenerateFlvLiveLink(secure, prefix, channel, imei interface{}) *gomock.Call
GenerateFlvLiveLink indicates an expected call of GenerateFlvLiveLink.
func (*MockJimiIotHubMockRecorder) GenerateRtmpLiveLink ¶
func (mr *MockJimiIotHubMockRecorder) GenerateRtmpLiveLink(secure, prefix, channel, imei interface{}) *gomock.Call
GenerateRtmpLiveLink indicates an expected call of GenerateRtmpLiveLink.
func (*MockJimiIotHubMockRecorder) GenerateVideoLinks ¶
func (mr *MockJimiIotHubMockRecorder) GenerateVideoLinks(secure, prefix, channel, imei interface{}) *gomock.Call
GenerateVideoLinks indicates an expected call of GenerateVideoLinks.
func (*MockJimiIotHubMockRecorder) GetEndpointHost ¶
func (mr *MockJimiIotHubMockRecorder) GetEndpointHost() *gomock.Call
GetEndpointHost indicates an expected call of GetEndpointHost.
func (*MockJimiIotHubMockRecorder) HistoryPlaybackControlRequest ¶
func (mr *MockJimiIotHubMockRecorder) HistoryPlaybackControlRequest(ctx, imei, deviceModel, cmdContent interface{}) *gomock.Call
HistoryPlaybackControlRequest indicates an expected call of HistoryPlaybackControlRequest.
func (*MockJimiIotHubMockRecorder) HistoryVideoPlaybackRequest ¶
func (mr *MockJimiIotHubMockRecorder) HistoryVideoPlaybackRequest(ctx, imei, deviceModel, cmdContent interface{}) *gomock.Call
HistoryVideoPlaybackRequest indicates an expected call of HistoryVideoPlaybackRequest.
func (*MockJimiIotHubMockRecorder) ListAVResourcesRequest ¶
func (mr *MockJimiIotHubMockRecorder) ListAVResourcesRequest(ctx, imei, deviceModel, cmdContent interface{}) *gomock.Call
ListAVResourcesRequest indicates an expected call of ListAVResourcesRequest.
func (*MockJimiIotHubMockRecorder) RealTimeAVControlRequest ¶
func (mr *MockJimiIotHubMockRecorder) RealTimeAVControlRequest(ctx, imei, deviceModel, cmdContent interface{}) *gomock.Call
RealTimeAVControlRequest indicates an expected call of RealTimeAVControlRequest.
func (*MockJimiIotHubMockRecorder) RealTimeAVRequest ¶
func (mr *MockJimiIotHubMockRecorder) RealTimeAVRequest(ctx, imei, deviceModel, cmdContent interface{}) *gomock.Call
RealTimeAVRequest indicates an expected call of RealTimeAVRequest.
func (*MockJimiIotHubMockRecorder) SendDeviceInstruction ¶
func (mr *MockJimiIotHubMockRecorder) SendDeviceInstruction(ctx, request interface{}) *gomock.Call
SendDeviceInstruction indicates an expected call of SendDeviceInstruction.
func (*MockJimiIotHubMockRecorder) Stop ¶
func (mr *MockJimiIotHubMockRecorder) Stop() *gomock.Call
Stop indicates an expected call of Stop.