Documentation ¶
Index ¶
Constants ¶
View Source
const ( LOGGER_MODE_DEBUG = "debug" LOGGER_MODE_PROD = "prod" )
Variables ¶
This section is empty.
Functions ¶
func ConvertHostInfoToJson ¶
func GetHostInfoByteAndMap ¶
func YamlToJson ¶
Types ¶
type Config ¶
type Config struct { Docker Docker `yaml:"docker"` Mqtt Mqtt `yaml:"mqtt"` AppName string `yaml:"app_name"` }
func ParseConfig ¶
type Mqtt ¶
type Mqtt struct { Broker string `yaml:"broker"` //url of the remote broker ClientId string `yaml:"client_id"` //client id to connect to remote broker Username string `yaml:"username"` //username to connect to remote broker Password string `yaml:"password"` //password to connect to remote broker EnableHeartbeat bool `yaml:"enable_heartbeat"` HeartBeatInterval int `yaml:"heartbeat_interval"` BrokerPublishTopic string `yaml:"broker_publish_topic"` BrokerSubscribeTopic string `yaml:"broker_subscribe_topic"` }
Click to show internal directories.
Click to hide internal directories.