extensions

package
v0.0.0-...-7b16d43 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Feb 1, 2021 License: Apache-2.0 Imports: 19 Imported by: 0

Documentation

Index

Constants

View Source
const DEFAULT_INTERVAL = 10000
View Source
const DEFAULT_TIMEOUT = 5000

Variables

This section is empty.

Functions

func CastToString

func CastToString(v interface{}) (result string, ok bool)

Types

type HTTPPullSource

type HTTPPullSource struct {
	// contains filtered or unexported fields
}

func (*HTTPPullSource) Close

func (hps *HTTPPullSource) Close(ctx api.StreamContext) error

func (*HTTPPullSource) Configure

func (hps *HTTPPullSource) Configure(device, jsonConfig string, props map[string]interface{}) error

func (*HTTPPullSource) Open

func (hps *HTTPPullSource) Open(ctx api.StreamContext, consumer chan<- api.SourceTuple, errCh chan<- error)

type MQTTConfig

type MQTTConfig struct {
	Format            string   `json:"format"`
	Qos               int      `json:"qos"`
	Servers           []string `json:"servers"`
	Clientid          string   `json:"clientid"`
	PVersion          string   `json:"protocolVersion"`
	Uname             string   `json:"username"`
	Password          string   `json:"password"`
	Certification     string   `json:"certificationPath"`
	PrivateKPath      string   `json:"privateKeyPath"`
	KubeedgeModelFile string   `json:"kubeedgeModelFile"`
	KubeedgeVersion   string   `json:"kubeedgeVersion"`
}

type MQTTSource

type MQTTSource struct {
	// contains filtered or unexported fields
}

func (*MQTTSource) Close

func (ms *MQTTSource) Close(ctx api.StreamContext) error

func (*MQTTSource) Configure

func (ms *MQTTSource) Configure(topic, jsonConfig string, props map[string]interface{}) error

func (*MQTTSource) Open

func (ms *MQTTSource) Open(ctx api.StreamContext, consumer chan<- api.SourceTuple, errCh chan<- error)

func (*MQTTSource) WithSchema

func (ms *MQTTSource) WithSchema(schema string) *MQTTSource

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL