mappers-go

module
v1.13.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jan 18, 2023 License: Apache-2.0

README

mappers-go

KubeEdge Device Mappers written in go, it works for KubeEdge 1.4 version and later.

Construction method

If you want to connect your edge device to kubeedge, you can create and write mapper to complete it. Now, two methods are provided, the basic mappers and mapper-sdk-go.

mappers

Mappers implement modbus, bluetooth, onvif and opcua. If you want to connect devices to kubeedge of these protocols, you can find them directly in mappers.

mapper-go-sdk

Mapper-sdk-go is a basic framework written in go. Based on this framework, developers can more easily implement a new mapper. Mapper-sdk has realized the connection to kubeedge, provides data conversion, and manages the basic properties and status of devices, etc. Basic capabilities and abstract definition of the driver interface. Developers only need to implement the customized protocol driver interface of the corresponding device to realize the function of mapper. You can get more information and details in mapper-sdk-go

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

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL