config

package
v0.0.0-...-c205787 Latest Latest
Warning

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

Go to latest
Published: Mar 15, 2020 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

View Source
const Default = `` /* 186-byte string literal not displayed */

Default represents default configuration in YAML format with 2-space

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Debug    bool
	TM       TM
	Database Database
	MQTT     MQTT
}

Config holds all link component configurations

func New

func New() Config

New reads configuration with viper and create configuration instance

type Database

type Database struct {
	URL  string
	Name string
}

Database holds database configuration

type MQTT

type MQTT struct {
	Addr string
}

MQTT holds MQTT configuration

type TM

type TM struct {
	URL string
}

TM holds I1820 Things Manager configuration

Jump to

Keyboard shortcuts

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