Documentation ¶
Index ¶
- func NewMQTT(logger logger.Logger) bindings.InputOutputBinding
- type MQTT
- func (m *MQTT) Close() error
- func (m *MQTT) GetComponentMetadata() map[string]string
- func (m *MQTT) Init(ctx context.Context, metadata bindings.Metadata) (err error)
- func (m *MQTT) Invoke(ctx context.Context, req *bindings.InvokeRequest) (*bindings.InvokeResponse, error)
- func (m *MQTT) Operations() []bindings.OperationKind
- func (m *MQTT) Read(ctx context.Context, handler bindings.Handler) error
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type MQTT ¶
type MQTT struct {
// contains filtered or unexported fields
}
MQTT allows sending and receiving data to/from an MQTT broker.
func (*MQTT) GetComponentMetadata ¶
GetComponentMetadata returns the metadata of the component.
func (*MQTT) Invoke ¶
func (m *MQTT) Invoke(ctx context.Context, req *bindings.InvokeRequest) (*bindings.InvokeResponse, error)
func (*MQTT) Operations ¶
func (m *MQTT) Operations() []bindings.OperationKind
Click to show internal directories.
Click to hide internal directories.