miclistener

package
v0.0.0-...-f92ee09 Latest Latest
Warning

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

Go to latest
Published: Apr 9, 2021 License: Apache-2.0 Imports: 19 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 {
	Username       string
	Password       string
	AWSAPIKey      string
	Topic          string
	AWSRegion      string
	AWSAPIGateway  string
	AWSUserPool    string
	AWSIoTEndpoint string
}

Config contains the configuration for this listener

type MICListener

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

MICListener connects to MIC and listens for messages from a particular Thing

func New

func New(opts *opts.Opts, pipeline pipeline.Pipeline, config *Config) *MICListener

New creates a new MICListener instance

func (*MICListener) Shutdown

func (h *MICListener) Shutdown()

Shutdown initiates shutdown of the MICListener

func (*MICListener) Start

func (h *MICListener) Start() error

Start MICListener instance

func (*MICListener) WaitForShutdown

func (h *MICListener) WaitForShutdown()

WaitForShutdown waits for the MICListener listener to shut down

Jump to

Keyboard shortcuts

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