Documentation ¶
Overview ¶
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Code generated by counterfeiter. DO NOT EDIT.
Index ¶
- type FakeClient
- func (fake *FakeClient) AddRoute(arg1 string, arg2 mqtt.MessageHandler)
- func (fake *FakeClient) AddRouteArgsForCall(i int) (string, mqtt.MessageHandler)
- func (fake *FakeClient) AddRouteCallCount() int
- func (fake *FakeClient) AddRouteCalls(stub func(string, mqtt.MessageHandler))
- func (fake *FakeClient) Connect() mqtt.Token
- func (fake *FakeClient) ConnectCallCount() int
- func (fake *FakeClient) ConnectCalls(stub func() mqtt.Token)
- func (fake *FakeClient) ConnectReturns(result1 mqtt.Token)
- func (fake *FakeClient) ConnectReturnsOnCall(i int, result1 mqtt.Token)
- func (fake *FakeClient) Disconnect(arg1 uint)
- func (fake *FakeClient) DisconnectArgsForCall(i int) uint
- func (fake *FakeClient) DisconnectCallCount() int
- func (fake *FakeClient) DisconnectCalls(stub func(uint))
- func (fake *FakeClient) Invocations() map[string][][]interface{}
- func (fake *FakeClient) IsConnected() bool
- func (fake *FakeClient) IsConnectedCallCount() int
- func (fake *FakeClient) IsConnectedCalls(stub func() bool)
- func (fake *FakeClient) IsConnectedReturns(result1 bool)
- func (fake *FakeClient) IsConnectedReturnsOnCall(i int, result1 bool)
- func (fake *FakeClient) IsConnectionOpen() bool
- func (fake *FakeClient) IsConnectionOpenCallCount() int
- func (fake *FakeClient) IsConnectionOpenCalls(stub func() bool)
- func (fake *FakeClient) IsConnectionOpenReturns(result1 bool)
- func (fake *FakeClient) IsConnectionOpenReturnsOnCall(i int, result1 bool)
- func (fake *FakeClient) OptionsReader() mqtt.ClientOptionsReader
- func (fake *FakeClient) OptionsReaderCallCount() int
- func (fake *FakeClient) OptionsReaderCalls(stub func() mqtt.ClientOptionsReader)
- func (fake *FakeClient) OptionsReaderReturns(result1 mqtt.ClientOptionsReader)
- func (fake *FakeClient) OptionsReaderReturnsOnCall(i int, result1 mqtt.ClientOptionsReader)
- func (fake *FakeClient) Publish(arg1 string, arg2 byte, arg3 bool, arg4 interface{}) mqtt.Token
- func (fake *FakeClient) PublishArgsForCall(i int) (string, byte, bool, interface{})
- func (fake *FakeClient) PublishCallCount() int
- func (fake *FakeClient) PublishCalls(stub func(string, byte, bool, interface{}) mqtt.Token)
- func (fake *FakeClient) PublishReturns(result1 mqtt.Token)
- func (fake *FakeClient) PublishReturnsOnCall(i int, result1 mqtt.Token)
- func (fake *FakeClient) Subscribe(arg1 string, arg2 byte, arg3 mqtt.MessageHandler) mqtt.Token
- func (fake *FakeClient) SubscribeArgsForCall(i int) (string, byte, mqtt.MessageHandler)
- func (fake *FakeClient) SubscribeCallCount() int
- func (fake *FakeClient) SubscribeCalls(stub func(string, byte, mqtt.MessageHandler) mqtt.Token)
- func (fake *FakeClient) SubscribeMultiple(arg1 map[string]byte, arg2 mqtt.MessageHandler) mqtt.Token
- func (fake *FakeClient) SubscribeMultipleArgsForCall(i int) (map[string]byte, mqtt.MessageHandler)
- func (fake *FakeClient) SubscribeMultipleCallCount() int
- func (fake *FakeClient) SubscribeMultipleCalls(stub func(map[string]byte, mqtt.MessageHandler) mqtt.Token)
- func (fake *FakeClient) SubscribeMultipleReturns(result1 mqtt.Token)
- func (fake *FakeClient) SubscribeMultipleReturnsOnCall(i int, result1 mqtt.Token)
- func (fake *FakeClient) SubscribeReturns(result1 mqtt.Token)
- func (fake *FakeClient) SubscribeReturnsOnCall(i int, result1 mqtt.Token)
- func (fake *FakeClient) Unsubscribe(arg1 ...string) mqtt.Token
- func (fake *FakeClient) UnsubscribeArgsForCall(i int) []string
- func (fake *FakeClient) UnsubscribeCallCount() int
- func (fake *FakeClient) UnsubscribeCalls(stub func(...string) mqtt.Token)
- func (fake *FakeClient) UnsubscribeReturns(result1 mqtt.Token)
- func (fake *FakeClient) UnsubscribeReturnsOnCall(i int, result1 mqtt.Token)
- type FakeMessage
- func (fake *FakeMessage) Ack()
- func (fake *FakeMessage) AckCallCount() int
- func (fake *FakeMessage) AckCalls(stub func())
- func (fake *FakeMessage) Duplicate() bool
- func (fake *FakeMessage) DuplicateCallCount() int
- func (fake *FakeMessage) DuplicateCalls(stub func() bool)
- func (fake *FakeMessage) DuplicateReturns(result1 bool)
- func (fake *FakeMessage) DuplicateReturnsOnCall(i int, result1 bool)
- func (fake *FakeMessage) Invocations() map[string][][]interface{}
- func (fake *FakeMessage) MessageID() uint16
- func (fake *FakeMessage) MessageIDCallCount() int
- func (fake *FakeMessage) MessageIDCalls(stub func() uint16)
- func (fake *FakeMessage) MessageIDReturns(result1 uint16)
- func (fake *FakeMessage) MessageIDReturnsOnCall(i int, result1 uint16)
- func (fake *FakeMessage) Payload() []byte
- func (fake *FakeMessage) PayloadCallCount() int
- func (fake *FakeMessage) PayloadCalls(stub func() []byte)
- func (fake *FakeMessage) PayloadReturns(result1 []byte)
- func (fake *FakeMessage) PayloadReturnsOnCall(i int, result1 []byte)
- func (fake *FakeMessage) Qos() byte
- func (fake *FakeMessage) QosCallCount() int
- func (fake *FakeMessage) QosCalls(stub func() byte)
- func (fake *FakeMessage) QosReturns(result1 byte)
- func (fake *FakeMessage) QosReturnsOnCall(i int, result1 byte)
- func (fake *FakeMessage) Retained() bool
- func (fake *FakeMessage) RetainedCallCount() int
- func (fake *FakeMessage) RetainedCalls(stub func() bool)
- func (fake *FakeMessage) RetainedReturns(result1 bool)
- func (fake *FakeMessage) RetainedReturnsOnCall(i int, result1 bool)
- func (fake *FakeMessage) Topic() string
- func (fake *FakeMessage) TopicCallCount() int
- func (fake *FakeMessage) TopicCalls(stub func() string)
- func (fake *FakeMessage) TopicReturns(result1 string)
- func (fake *FakeMessage) TopicReturnsOnCall(i int, result1 string)
- type FakeToken
- func (fake *FakeToken) Error() error
- func (fake *FakeToken) ErrorCallCount() int
- func (fake *FakeToken) ErrorCalls(stub func() error)
- func (fake *FakeToken) ErrorReturns(result1 error)
- func (fake *FakeToken) ErrorReturnsOnCall(i int, result1 error)
- func (fake *FakeToken) Invocations() map[string][][]interface{}
- func (fake *FakeToken) Wait() bool
- func (fake *FakeToken) WaitCallCount() int
- func (fake *FakeToken) WaitCalls(stub func() bool)
- func (fake *FakeToken) WaitReturns(result1 bool)
- func (fake *FakeToken) WaitReturnsOnCall(i int, result1 bool)
- func (fake *FakeToken) WaitTimeout(arg1 time.Duration) bool
- func (fake *FakeToken) WaitTimeoutArgsForCall(i int) time.Duration
- func (fake *FakeToken) WaitTimeoutCallCount() int
- func (fake *FakeToken) WaitTimeoutCalls(stub func(time.Duration) bool)
- func (fake *FakeToken) WaitTimeoutReturns(result1 bool)
- func (fake *FakeToken) WaitTimeoutReturnsOnCall(i int, result1 bool)
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type FakeClient ¶
type FakeClient struct { AddRouteStub func(string, mqtt.MessageHandler) ConnectStub func() mqtt.Token DisconnectStub func(uint) IsConnectedStub func() bool IsConnectionOpenStub func() bool OptionsReaderStub func() mqtt.ClientOptionsReader PublishStub func(string, byte, bool, interface{}) mqtt.Token SubscribeStub func(string, byte, mqtt.MessageHandler) mqtt.Token SubscribeMultipleStub func(map[string]byte, mqtt.MessageHandler) mqtt.Token UnsubscribeStub func(...string) mqtt.Token // contains filtered or unexported fields }
func (*FakeClient) AddRoute ¶
func (fake *FakeClient) AddRoute(arg1 string, arg2 mqtt.MessageHandler)
func (*FakeClient) AddRouteArgsForCall ¶
func (fake *FakeClient) AddRouteArgsForCall(i int) (string, mqtt.MessageHandler)
func (*FakeClient) AddRouteCallCount ¶
func (fake *FakeClient) AddRouteCallCount() int
func (*FakeClient) AddRouteCalls ¶
func (fake *FakeClient) AddRouteCalls(stub func(string, mqtt.MessageHandler))
func (*FakeClient) Connect ¶
func (fake *FakeClient) Connect() mqtt.Token
func (*FakeClient) ConnectCallCount ¶
func (fake *FakeClient) ConnectCallCount() int
func (*FakeClient) ConnectCalls ¶
func (fake *FakeClient) ConnectCalls(stub func() mqtt.Token)
func (*FakeClient) ConnectReturns ¶
func (fake *FakeClient) ConnectReturns(result1 mqtt.Token)
func (*FakeClient) ConnectReturnsOnCall ¶
func (fake *FakeClient) ConnectReturnsOnCall(i int, result1 mqtt.Token)
func (*FakeClient) Disconnect ¶
func (fake *FakeClient) Disconnect(arg1 uint)
func (*FakeClient) DisconnectArgsForCall ¶
func (fake *FakeClient) DisconnectArgsForCall(i int) uint
func (*FakeClient) DisconnectCallCount ¶
func (fake *FakeClient) DisconnectCallCount() int
func (*FakeClient) DisconnectCalls ¶
func (fake *FakeClient) DisconnectCalls(stub func(uint))
func (*FakeClient) Invocations ¶
func (fake *FakeClient) Invocations() map[string][][]interface{}
func (*FakeClient) IsConnected ¶
func (fake *FakeClient) IsConnected() bool
func (*FakeClient) IsConnectedCallCount ¶
func (fake *FakeClient) IsConnectedCallCount() int
func (*FakeClient) IsConnectedCalls ¶
func (fake *FakeClient) IsConnectedCalls(stub func() bool)
func (*FakeClient) IsConnectedReturns ¶
func (fake *FakeClient) IsConnectedReturns(result1 bool)
func (*FakeClient) IsConnectedReturnsOnCall ¶
func (fake *FakeClient) IsConnectedReturnsOnCall(i int, result1 bool)
func (*FakeClient) IsConnectionOpen ¶
func (fake *FakeClient) IsConnectionOpen() bool
func (*FakeClient) IsConnectionOpenCallCount ¶
func (fake *FakeClient) IsConnectionOpenCallCount() int
func (*FakeClient) IsConnectionOpenCalls ¶
func (fake *FakeClient) IsConnectionOpenCalls(stub func() bool)
func (*FakeClient) IsConnectionOpenReturns ¶
func (fake *FakeClient) IsConnectionOpenReturns(result1 bool)
func (*FakeClient) IsConnectionOpenReturnsOnCall ¶
func (fake *FakeClient) IsConnectionOpenReturnsOnCall(i int, result1 bool)
func (*FakeClient) OptionsReader ¶
func (fake *FakeClient) OptionsReader() mqtt.ClientOptionsReader
func (*FakeClient) OptionsReaderCallCount ¶
func (fake *FakeClient) OptionsReaderCallCount() int
func (*FakeClient) OptionsReaderCalls ¶
func (fake *FakeClient) OptionsReaderCalls(stub func() mqtt.ClientOptionsReader)
func (*FakeClient) OptionsReaderReturns ¶
func (fake *FakeClient) OptionsReaderReturns(result1 mqtt.ClientOptionsReader)
func (*FakeClient) OptionsReaderReturnsOnCall ¶
func (fake *FakeClient) OptionsReaderReturnsOnCall(i int, result1 mqtt.ClientOptionsReader)
func (*FakeClient) PublishArgsForCall ¶
func (fake *FakeClient) PublishArgsForCall(i int) (string, byte, bool, interface{})
func (*FakeClient) PublishCallCount ¶
func (fake *FakeClient) PublishCallCount() int
func (*FakeClient) PublishCalls ¶
func (*FakeClient) PublishReturns ¶
func (fake *FakeClient) PublishReturns(result1 mqtt.Token)
func (*FakeClient) PublishReturnsOnCall ¶
func (fake *FakeClient) PublishReturnsOnCall(i int, result1 mqtt.Token)
func (*FakeClient) Subscribe ¶
func (fake *FakeClient) Subscribe(arg1 string, arg2 byte, arg3 mqtt.MessageHandler) mqtt.Token
func (*FakeClient) SubscribeArgsForCall ¶
func (fake *FakeClient) SubscribeArgsForCall(i int) (string, byte, mqtt.MessageHandler)
func (*FakeClient) SubscribeCallCount ¶
func (fake *FakeClient) SubscribeCallCount() int
func (*FakeClient) SubscribeCalls ¶
func (fake *FakeClient) SubscribeCalls(stub func(string, byte, mqtt.MessageHandler) mqtt.Token)
func (*FakeClient) SubscribeMultiple ¶
func (fake *FakeClient) SubscribeMultiple(arg1 map[string]byte, arg2 mqtt.MessageHandler) mqtt.Token
func (*FakeClient) SubscribeMultipleArgsForCall ¶
func (fake *FakeClient) SubscribeMultipleArgsForCall(i int) (map[string]byte, mqtt.MessageHandler)
func (*FakeClient) SubscribeMultipleCallCount ¶
func (fake *FakeClient) SubscribeMultipleCallCount() int
func (*FakeClient) SubscribeMultipleCalls ¶
func (fake *FakeClient) SubscribeMultipleCalls(stub func(map[string]byte, mqtt.MessageHandler) mqtt.Token)
func (*FakeClient) SubscribeMultipleReturns ¶
func (fake *FakeClient) SubscribeMultipleReturns(result1 mqtt.Token)
func (*FakeClient) SubscribeMultipleReturnsOnCall ¶
func (fake *FakeClient) SubscribeMultipleReturnsOnCall(i int, result1 mqtt.Token)
func (*FakeClient) SubscribeReturns ¶
func (fake *FakeClient) SubscribeReturns(result1 mqtt.Token)
func (*FakeClient) SubscribeReturnsOnCall ¶
func (fake *FakeClient) SubscribeReturnsOnCall(i int, result1 mqtt.Token)
func (*FakeClient) Unsubscribe ¶
func (fake *FakeClient) Unsubscribe(arg1 ...string) mqtt.Token
func (*FakeClient) UnsubscribeArgsForCall ¶
func (fake *FakeClient) UnsubscribeArgsForCall(i int) []string
func (*FakeClient) UnsubscribeCallCount ¶
func (fake *FakeClient) UnsubscribeCallCount() int
func (*FakeClient) UnsubscribeCalls ¶
func (fake *FakeClient) UnsubscribeCalls(stub func(...string) mqtt.Token)
func (*FakeClient) UnsubscribeReturns ¶
func (fake *FakeClient) UnsubscribeReturns(result1 mqtt.Token)
func (*FakeClient) UnsubscribeReturnsOnCall ¶
func (fake *FakeClient) UnsubscribeReturnsOnCall(i int, result1 mqtt.Token)
type FakeMessage ¶
type FakeMessage struct { AckStub func() DuplicateStub func() bool MessageIDStub func() uint16 PayloadStub func() []byte QosStub func() byte RetainedStub func() bool TopicStub func() string // contains filtered or unexported fields }
func (*FakeMessage) Ack ¶
func (fake *FakeMessage) Ack()
func (*FakeMessage) AckCallCount ¶
func (fake *FakeMessage) AckCallCount() int
func (*FakeMessage) AckCalls ¶
func (fake *FakeMessage) AckCalls(stub func())
func (*FakeMessage) Duplicate ¶
func (fake *FakeMessage) Duplicate() bool
func (*FakeMessage) DuplicateCallCount ¶
func (fake *FakeMessage) DuplicateCallCount() int
func (*FakeMessage) DuplicateCalls ¶
func (fake *FakeMessage) DuplicateCalls(stub func() bool)
func (*FakeMessage) DuplicateReturns ¶
func (fake *FakeMessage) DuplicateReturns(result1 bool)
func (*FakeMessage) DuplicateReturnsOnCall ¶
func (fake *FakeMessage) DuplicateReturnsOnCall(i int, result1 bool)
func (*FakeMessage) Invocations ¶
func (fake *FakeMessage) Invocations() map[string][][]interface{}
func (*FakeMessage) MessageID ¶
func (fake *FakeMessage) MessageID() uint16
func (*FakeMessage) MessageIDCallCount ¶
func (fake *FakeMessage) MessageIDCallCount() int
func (*FakeMessage) MessageIDCalls ¶
func (fake *FakeMessage) MessageIDCalls(stub func() uint16)
func (*FakeMessage) MessageIDReturns ¶
func (fake *FakeMessage) MessageIDReturns(result1 uint16)
func (*FakeMessage) MessageIDReturnsOnCall ¶
func (fake *FakeMessage) MessageIDReturnsOnCall(i int, result1 uint16)
func (*FakeMessage) Payload ¶
func (fake *FakeMessage) Payload() []byte
func (*FakeMessage) PayloadCallCount ¶
func (fake *FakeMessage) PayloadCallCount() int
func (*FakeMessage) PayloadCalls ¶
func (fake *FakeMessage) PayloadCalls(stub func() []byte)
func (*FakeMessage) PayloadReturns ¶
func (fake *FakeMessage) PayloadReturns(result1 []byte)
func (*FakeMessage) PayloadReturnsOnCall ¶
func (fake *FakeMessage) PayloadReturnsOnCall(i int, result1 []byte)
func (*FakeMessage) Qos ¶
func (fake *FakeMessage) Qos() byte
func (*FakeMessage) QosCallCount ¶
func (fake *FakeMessage) QosCallCount() int
func (*FakeMessage) QosCalls ¶
func (fake *FakeMessage) QosCalls(stub func() byte)
func (*FakeMessage) QosReturns ¶
func (fake *FakeMessage) QosReturns(result1 byte)
func (*FakeMessage) QosReturnsOnCall ¶
func (fake *FakeMessage) QosReturnsOnCall(i int, result1 byte)
func (*FakeMessage) Retained ¶
func (fake *FakeMessage) Retained() bool
func (*FakeMessage) RetainedCallCount ¶
func (fake *FakeMessage) RetainedCallCount() int
func (*FakeMessage) RetainedCalls ¶
func (fake *FakeMessage) RetainedCalls(stub func() bool)
func (*FakeMessage) RetainedReturns ¶
func (fake *FakeMessage) RetainedReturns(result1 bool)
func (*FakeMessage) RetainedReturnsOnCall ¶
func (fake *FakeMessage) RetainedReturnsOnCall(i int, result1 bool)
func (*FakeMessage) Topic ¶
func (fake *FakeMessage) Topic() string
func (*FakeMessage) TopicCallCount ¶
func (fake *FakeMessage) TopicCallCount() int
func (*FakeMessage) TopicCalls ¶
func (fake *FakeMessage) TopicCalls(stub func() string)
func (*FakeMessage) TopicReturns ¶
func (fake *FakeMessage) TopicReturns(result1 string)
func (*FakeMessage) TopicReturnsOnCall ¶
func (fake *FakeMessage) TopicReturnsOnCall(i int, result1 string)
type FakeToken ¶
type FakeToken struct { ErrorStub func() error WaitStub func() bool WaitTimeoutStub func(time.Duration) bool // contains filtered or unexported fields }
func (*FakeToken) ErrorCallCount ¶
func (*FakeToken) ErrorCalls ¶
func (*FakeToken) ErrorReturns ¶
func (*FakeToken) ErrorReturnsOnCall ¶
func (*FakeToken) Invocations ¶
func (*FakeToken) WaitCallCount ¶
func (*FakeToken) WaitReturns ¶
func (*FakeToken) WaitReturnsOnCall ¶
func (*FakeToken) WaitTimeoutArgsForCall ¶
func (*FakeToken) WaitTimeoutCallCount ¶
func (*FakeToken) WaitTimeoutCalls ¶
func (*FakeToken) WaitTimeoutReturns ¶
func (*FakeToken) WaitTimeoutReturnsOnCall ¶
Click to show internal directories.
Click to hide internal directories.