Documentation ¶
Index ¶
- Constants
- type Dynamic
- type Kafka
- func (k *Kafka) Close()
- func (k *Kafka) DefaultSpec() interface{}
- func (k *Kafka) Description() string
- func (k *Kafka) Handle(ctx context.HTTPContext) (result string)
- func (k *Kafka) Inherit(filterSpec *httppipeline.FilterSpec, previousGeneration httppipeline.Filter)
- func (k *Kafka) Init(filterSpec *httppipeline.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 Dynamic ¶
type Dynamic struct {
Header string `yaml:"header" jsonschema:"omitempty"`
}
Dynamic defines dynamic ways to get Kafka topic from http request
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) Handle ¶
func (k *Kafka) Handle(ctx context.HTTPContext) (result string)
Handle handles HTTPContext.
func (*Kafka) Inherit ¶
func (k *Kafka) Inherit(filterSpec *httppipeline.FilterSpec, previousGeneration httppipeline.Filter)
Inherit init Kafka based on previous generation
Click to show internal directories.
Click to hide internal directories.