Documentation ¶
Index ¶
- Constants
- type KVMap
- type Kafka
- func (k *Kafka) Close()
- func (k *Kafka) DefaultSpec() interface{}
- func (k *Kafka) Description() string
- func (k *Kafka) HandleMQTT(ctx context.MQTTContext) *context.MQTTResult
- func (k *Kafka) Inherit(filterSpec *pipeline.FilterSpec, previousGeneration pipeline.Filter)
- func (k *Kafka) Init(filterSpec *pipeline.FilterSpec)
- func (k *Kafka) Kind() string
- func (k *Kafka) Results() []string
- func (k *Kafka) Status() interface{}
- type Spec
- type Topic
Constants ¶
View Source
const (
// Kind is the kind of Kafka
Kind = "Kafka"
)
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type KVMap ¶
type KVMap struct { TopicKey string `yaml:"topicKey" jsonschema:"required"` HeaderKey string `yaml:"headerKey" jsonschema:"required"` PayloadKey string `yaml:"payloadKey" jsonschema:"required"` }
KVMap defines ways to get kafka data from MQTTContext kv map
type Kafka ¶
type Kafka struct {
// contains filtered or unexported fields
}
Kafka is kafka backend for MQTT proxy
func (*Kafka) DefaultSpec ¶
func (k *Kafka) DefaultSpec() interface{}
DefaultSpec return default spec of Kafka
func (*Kafka) Description ¶
Description return description of Kafka
func (*Kafka) HandleMQTT ¶
func (k *Kafka) HandleMQTT(ctx context.MQTTContext) *context.MQTTResult
HandleMQTT handle MQTT context
Click to show internal directories.
Click to hide internal directories.