beater

package
v0.0.0-...-b48518c Latest Latest
Warning

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

Go to latest
Published: Oct 11, 2019 License: Apache-2.0 Imports: 11 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DecodePayload

func DecodePayload(payload []byte) common.MapStr

DecodePayload will try to decode the payload. If every check fails, it will return the payload as a string

func New

func New(b *beat.Beat, cfg *common.Config) (beat.Beater, error)

New function creates our mqtt beater

func ParseTopics

func ParseTopics(topics []string) map[string]byte

ParseTopics will parse the config file and return a map with topic:QoS

Types

type Mqttbeat

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

Mqttbeat represent a mqtt beat object

func (*Mqttbeat) Run

func (bt *Mqttbeat) Run(b *beat.Beat) error

Run is used to start this beater, once configured and connected

func (*Mqttbeat) Stop

func (bt *Mqttbeat) Stop()

Stop is used to close this beater

Jump to

Keyboard shortcuts

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