mapper

package
v1.0.1 Latest Latest
Warning

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

Go to latest
Published: Jun 17, 2022 License: MIT Imports: 8 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	SessionStartAuto   bool
	SessionStopAuto    bool
	SessionStartManual bool
}

Config holds the mapper configuration

type Mapper

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

Mapper orchestrates incoming locations via mqtt and outgoing calls to Hauk

func New

func New(config Config, haukClient hauk.Client, notifier notification.Notifier) Mapper

New creates a new instance of the mapper orchestrating mqtt and Hauk

func (*Mapper) Run

func (t *Mapper) Run(messages <-chan mqtt.Message)

Run maps mqtt messages to hauk API calls

Jump to

Keyboard shortcuts

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