Versions in this module Expand all Collapse all v1 v1.0.0 Jul 29, 2024 Changes in this version + const Commands + const Hearbeat + const Path + var ErrInvalidQueryParams = errors.New("invalid query params") + var ErrMalformedEntity = errors.New("malformed entity specification") + func SaveConfig(c Config) error + type ChanConfig struct + Control string + Data string + type Config struct + Channels ChanConfig + Edgex EdgexConfig + File string + Heartbeat HeartbeatConfig + Log LogConfig + MQTT MQTTConfig + Server ServerConfig + Terminal TerminalConfig + func NewConfig(sc ServerConfig, cc ChanConfig, ec EdgexConfig, lc LogConfig, mc MQTTConfig, ...) Config + func ReadConfig(file string) (Config, error) + type EdgexConfig struct + URL string + type Heartbeat interface + Info func() Info + Update func() + func NewHeartbeat(name, svcType string, interval time.Duration) Heartbeat + type HeartbeatConfig struct + Interval time.Duration + func (d *HeartbeatConfig) UnmarshalJSON(b []byte) error + type Info struct + LastSeen time.Time + Name string + Status string + Terminal int + Type string + type LogConfig struct + Level string + type MQTTConfig struct + CA []byte + CAPath string + CaCert string + Cert tls.Certificate + CertPath string + ClientCert string + ClientKey string + MTLS bool + Password string + PrivKeyPath string + QoS byte + Retain bool + SkipTLSVer bool + URL string + Username string + type ServerConfig struct + BrokerURL string + Port string + type Service interface + AddConfig func(Config) error + Config func() Config + Control func(string, string) error + Execute func(string, string) (string, error) + Publish func(string, string) error + ServiceConfig func(ctx context.Context, uuid, cmdStr string) error + Services func() []Info + Terminal func(string, string) error + func New(ctx context.Context, mc paho.Client, cfg *Config, ec edgex.Client, ...) (Service, error) + type TerminalConfig struct + SessionTimeout time.Duration + func (d *TerminalConfig) UnmarshalJSON(b []byte) error