Directories ¶
Path | Synopsis |
---|---|
_template
|
|
mapper/device
* TODO: This file is to control the devices.
|
* TODO: This file is to control the devices. |
mapper-sdk-go
|
|
internal/clients/httpclient
Package httpclient implements HTTP client initialization and message processing
|
Package httpclient implements HTTP client initialization and message processing |
internal/clients/mqttclient
Package mqttclient implements MQTT client initialization and message processing
|
Package mqttclient implements MQTT client initialization and message processing |
internal/common
Package common used to store constants, data conversion functions, timers, etc
|
Package common used to store constants, data conversion functions, timers, etc |
internal/config
Package config used to parse config.yaml and cmd param
|
Package config used to parse config.yaml and cmd param |
internal/configmap
Package configmap used to define the configmap structure, and read data from the JSON file and write it to memory
|
Package configmap used to define the configmap structure, and read data from the JSON file and write it to memory |
internal/controller
Package controller used to call driver interface to read or write device
|
Package controller used to call driver interface to read or write device |
internal/httpadapter
Package httpadapter is a package to process RESTful message
|
Package httpadapter is a package to process RESTful message |
internal/httpadapter/requests
Package requests used to call define add device request's struct
|
Package requests used to call define add device request's struct |
internal/httpadapter/response
Package response used to implement the responses structure
|
Package response used to implement the responses structure |
internal/instancepool
Package instancepool used to provide a pool to get MapperService's instance, like deviceInstances map[string]*configmap.DeviceInstance ,deviceModels map[string]*configmap.DeviceModel, etc.
|
Package instancepool used to provide a pool to get MapperService's instance, like deviceInstances map[string]*configmap.DeviceInstance ,deviceModels map[string]*configmap.DeviceModel, etc. |
internal/mqttadapter
Package mqttadapter is a package to process mqtt message publish messages to EdgeCore and subscribe to EdgeCore messages
|
Package mqttadapter is a package to process mqtt message publish messages to EdgeCore and subscribe to EdgeCore messages |
pkg/di
Package di provide a method to get the corresponding services through dependency injection
|
Package di provide a method to get the corresponding services through dependency injection |
pkg/models
Package models defines the interfaces that developer need to implement
|
Package models defines the interfaces that developer need to implement |
pkg/service
Package service responsible for interacting with developers
|
Package service responsible for interacting with developers |
mappers
|
|
pkg
|
|
tests
|
|
Click to show internal directories.
Click to hide internal directories.