🚀 DAY 2 OF LAUNCH WEEK: Announcing Socket Certified Patches: One-Click Fixes for Vulnerable Dependencies.Learn more →
Socket
Book a DemoInstallSign in
Socket

github.com/eightyeight/gosunspec

Package Overview
Dependencies
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/eightyeight/gosunspec

Source
Go
Version
v0.0.0-20191211123802-82481962fa17
Version published
Created
Source

This project is unmaintained. Please see https://github.com/crabmusket/gosunspec/issues/38

SunSpec tools for Go

This package contains Go data types representing the SunSpec information model. Subpackages implement particular use-cases that rely on this domain model:

  • /core contains the types used by the remainder of the library
  • /smdx contains types that represent (XML) SMDX models defined by the Sunspec specification
  • /generators implements code generators that transform the SMDX models into Go code
  • /models contains 1 generated package for each SMDX model
  • /xml contains utilities for exchanging SunSpec data using the XML format
  • /modbus contains utilities for talking to SunSpec devices via Modbus RTU
  • /server is an example HTTP server that receives SunSpec XML data

Generated code

This package uses typesafe representations of each model type. To avoid excessive manual maintenance, structs for each type of model defined by SunSpec are generated from the SMDX model files. To regenerate this code, first initialise the spec submodule with:

git submodule update --init spec

Then run the generators:

go generate ./models

FAQs

Package last updated on 11 Dec 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts