package
0.0.0-20200930173842-476b4f672e85
Repository: https://github.com/iotdomain/iotdomain-go.git
Documentation: pkg.go.dev
# Functions
LoadAppConfig loads the application configuration from a configuration file
configFolder contains the location for the configuration files.
LoadMessengerConfig loads the message bus messenger configuration from a configuration file
configFolder location of configuration files.
LoadYamlConfig parses the content of a yaml configuration file into the target object It performs template substitution of expressions {publisher} and {hostname}
altConfigFolder contains the location for the configuration files.
MakeBaseAddress returns the base address without messagetype suffix.
MakeErrorf logs an warning and return an error with the given text.
NewDomainCollection creates an instance for generic handling of discovered inputs, outputs and nodes itemPtr is a pointer to a dummy instance of the item.
SetLogging sets the logging level and output file.
# Constants
AppConfigSuffix to append to the publisher ID to load the application configuration.
MessengerConfigFile is the filename of the shared messenger configuration used by all publishers.
# Variables
DefaultCacheFolder for caching discovered nodes and other publishers.
DefaultConfigFolder for publisher configuration files: ~/.config/iotc.
UserHomeDir is the user's home folder for default config.
# Structs
DomainCollection for managing discovered nodes,inputs and outputs Hopefully this can be replaced with generics soon.