emitters

package
v0.0.1 Latest Latest
Warning

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

Go to latest
Published: Oct 12, 2022 License: MIT Imports: 15 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func DatadogEmit

func DatadogEmit(payload blue.Payload, emitterConfig interface{}) (string, error)

func DatadogEmitWithClient

func DatadogEmitWithClient(payload blue.Payload, emitterConfig interface{}, client statsd.ClientInterface) (string, error)

func MQTTEmit

func MQTTEmit(payload blue.Payload, emitterConfig interface{}) (string, error)

func MQTTEmitWithClient

func MQTTEmitWithClient(payload blue.Payload, emitterConfig interface{}, client _mqtt.Client) (string, error)

func SQLiteEmit

func SQLiteEmit(payload blue.Payload, emitterConfig interface{}) (string, error)

func StdoutEmit

func StdoutEmit(payload blue.Payload, emitterConfig interface{}) (string, error)

func WebhookEmit

func WebhookEmit(payload blue.Payload, emitterConfig interface{}) (string, error)

Types

type Datadog

type Datadog struct {
	Enabled       bool
	DeviceUUIDMap string `json:"device_uuids"`
	StatsdHost    string `json:"statsd_host"`
	StatsdPort    int    `json:"statsd_port"`
	Tags          string `json:"tags"`
	Gauges        string `json:"gauges"`
}

type MQTT

type MQTT struct {
	Enabled       bool
	DeviceUUIDMap string `json:"device_uuids"`
	Template      string
	URL           string
	ClientID      string `json:"client_id""`
	Username      string
	Topic         string
	Retained      bool
}

type MockClient

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

type SQLite

type SQLite struct {
	Enabled       bool
	File          string
	DeviceUUIDMap string `json:"device_uuids"`
}

type Stdout

type Stdout struct {
	Enabled       bool
	DeviceUUIDMap string `json:"device_uuids"`
	Template      string
}

type Template

type Template struct {
	Nickname  string
	Minor     string
	Mac       string
	Major     string
	Timestamp int64
}

type Webhook

type Webhook struct {
	Enabled       bool
	DeviceUUIDMap string `json:"device_uuids"`
	URL           string
	Headers       string
	Template      string
	Method        string
}

Jump to

Keyboard shortcuts

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