Documentation
¶
Overview ¶
******************************************************************************
- Copyright 2018 Dell Inc. *
- Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except
- in compliance with the License. You may obtain a copy of the License at *
- http://www.apache.org/licenses/LICENSE-2.0 *
- Unless required by applicable law or agreed to in writing, software distributed under the License
- is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express
- or implied. See the License for the specific language governing permissions and limitations under
- the License. ******************************************************************************
Index ¶
- Variables
- func Destruct()
- func Init() bool
- func Loop(errChan chan error, eventCh chan *models.Event)
- func MangosReceiver(eventCh chan *models.Event)
- func RefreshRegistrations(update contract.NotifyUpdate)
- func Retry(useProfile string, timeout int, wait *sync.WaitGroup, ch chan error)
- type AzureMessage
- type BIoTMessage
- type CertificateInfo
- type ConfigurationStruct
- type WritableInfo
Constants ¶
This section is empty.
Variables ¶
View Source
var DexmaParameterTable = []struct { name string code string codenum int }{ {"POWER", "401", 401}, {"EACTIVE", "402", 402}, {"IRPOWER", "403", 403}, {"IRENERGY", "404", 404}, {"VOLTAGE", "405", 405}, {"CURRENT", "406", 406}, {"CRPOWER", "407", 407}, {"CRENERGY", "408", 408}, {"APPOWER", "409", 409}, {"APENERGY", "410", 410}, {"COSPHY", "411", 411}, {"PF", "412", 412}, {"NCURRENT", "413", 413}, {"FREQ", "414", 414}, {"IAENERGY", "415", 415}, {"IIRENERGY", "416", 416}, {"IAPENERGY", "417", 417}, {"MAXDEMAND", "418", 418}, {"GASVOLUME", "419", 419}, {"GASENERGY", "420", 420}, {"GASVOLN", "421", 421}, {"THDV", "422", 422}, {"THDC", "423", 423}, {"IMAXVOLTAGE", "424", 424}, {"IMAXCURRENT", "425", 425}, {"AVGCURRENT", "426", 426}, {"PASEENERGY", "427", 427}, {"BASEENERGY", "428", 428}, {"EACTIVEABS", "429", 429}, }
View Source
var LoggingClient logger.LoggingClient
Functions ¶
func MangosReceiver ¶
func RefreshRegistrations ¶
func RefreshRegistrations(update contract.NotifyUpdate)
Types ¶
type AzureMessage ¶
type AzureMessage struct { ID string `json:"id"` SequenceNumber int64 `json:"sequenceNumber"` To string `json:"To"` Created time.Time `json:"CreationTimeUtc"` Expire time.Time `json:"ExpiryTimeUtc"` Enqueued time.Time `json:"EnqueuedTime"` CorrelationID string `json:"CorrelationId"` UserID string `json:"userId"` Ack feedbackCode `json:"ack"` ConnDevID string `json:"connectionDeviceId"` ConnDevGenID string `json:"connectionDeviceGenerationId"` ConnAuthMethod connAuthMethod `json:"connectionAuthMethod,omitempty"` Body []byte `json:"body"` Properties map[string]string `json:"properties"` }
AzureMessage represents Azure IoT Hub message.
func (*AzureMessage) AddProperty ¶
func (am *AzureMessage) AddProperty(key, value string) error
AddProperty method ads property performing key check.
type BIoTMessage ¶
type BIoTMessage struct { Version string `json:"version"` MsgType string `json:"msgType"` FuncType string `json:"funcType"` SId string `json:"sId"` TpId string `json:"tpId"` TId string `json:"tId"` MsgCode string `json:"msgCode"` MsgId string `json:"msgId"` MsgDate int64 `json:"msgDate"` ResCode string `json:"resCode"` ResMsg string `json:"resMsg"` Severity string `json:"severity"` Dataformat string `json:"dataformat"` EncType string `json:"encType"` AuthToken string `json:"authToken"` Data []byte `json:"data"` }
BIoTMessage represents Brightics IoT(Samsung SDS IoT platform) messages.
type CertificateInfo ¶
type ConfigurationStruct ¶
type ConfigurationStruct struct { Writable WritableInfo Certificates map[string]CertificateInfo Clients map[string]config.ClientInfo Logging config.LoggingInfo MessageQueue config.MessageQueueInfo AnalyticsQueue config.MessageQueueInfo Service config.ServiceInfo }
var Configuration *ConfigurationStruct
type WritableInfo ¶
Click to show internal directories.
Click to hide internal directories.