app

package
v0.0.0-...-482fd9e Latest Latest
Warning

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

Go to latest
Published: Jun 18, 2019 License: GPL-3.0 Imports: 13 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Application

type Application struct {
	Name string

	Logger *logrus.Logger
	// contains filtered or unexported fields
}

Application is a main component of uplink that consists of uplink protocols and mqtt client

func New

func New(name string) *Application

New creates new application. this function creates mqtt client

func (*Application) Run

func (a *Application) Run()

Run runs application. this function connects mqtt client and then register its topic

func (*Application) Scenario

func (a *Application) Scenario() *scenario.Scenario

Scenario returns application scenario instance

Jump to

Keyboard shortcuts

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