config

package
v0.0.0-...-1ff4360 Latest Latest
Warning

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

Go to latest
Published: Feb 10, 2021 License: GPL-3.0 Imports: 5 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 {
	PublicKey       ed25519.PublicKey
	PrivateKey      ed25519.PrivateKey
	ServerPublicKey ed25519.PublicKey
	DeviceID        string
	BrokerURL       string
	CommandTopic    topic
	StateTopic      topic
}

Config is runtime configuration, PublicKey and PrivateKey are loeaded from .env or env variables

func Load

func Load() (*Config, error)

Load loads config and returns it

Jump to

Keyboard shortcuts

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