Documentation
¶
Overview ¶
Package simpleiot is a collection of Go code that is useful for implementing cloud and edge applications.
See http://simpleiot.org/ for more information.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Options ¶
type Options struct { StoreType store.Type DataDir string HTTPPort string DebugHTTP bool DisableAuth bool NatsServer string NatsDisableServer bool NatsPort int NatsHTTPPort int NatsTLSCert string NatsTLSKey string NatsTLSTimeout float64 AuthToken string ParticleAPIKey string }
Options used for starting Simple IoT
type Siot ¶ added in v0.0.37
type Siot struct {
// contains filtered or unexported fields
}
Siot is used to manage the Siot server
func (*Siot) Start ¶ added in v0.0.37
Start Simple IoT data store. The nats connection returned can be used with helper functions in the simpleiot nats package. Note, this function cannot be used directly because we don't checkin the frontend assets for the SIOT web ui. See this example for how you can embed SIOT in your project by adding it as a submodule: https://github.com/simpleiot/custom-application-examples/tree/main/example-1
Directories
¶
Path | Synopsis |
---|---|
Package api implments the SIOT http interface.
|
Package api implments the SIOT http interface. |
Package assets includes generated code from embedded assets (frontend, etc).
|
Package assets includes generated code from embedded assets (frontend, etc). |
cmd
|
|
Package contrib contains systemd example service files, etc.
|
Package contrib contains systemd example service files, etc. |
Package data contains key data structures that are used throughout the project.
|
Package data contains key data structures that are used throughout the project. |
Package file contains file utilties.
|
Package file contains file utilties. |
Package frontend includes web UI frontend code.
|
Package frontend includes web UI frontend code. |
Package gps contains code to parse GPS data.
|
Package gps contains code to parse GPS data. |
Package internal include protobuf definitions.
|
Package internal include protobuf definitions. |
Package modbus contains modbus RTU/TCP client/server code.
|
Package modbus contains modbus RTU/TCP client/server code. |
Package nats contains utilties for reading/writing data using NATS.
|
Package nats contains utilties for reading/writing data using NATS. |
Package natsserver is used to embed the NATS server in an application.
|
Package natsserver is used to embed the NATS server in an application. |
Package network contains drivers to manage various network interfaces including modems.
|
Package network contains drivers to manage various network interfaces including modems. |
Package node contains functionality to manage different types of nodes.
|
Package node contains functionality to manage different types of nodes. |
Package particle is used to interface with devices through the particle.io cloud.
|
Package particle is used to interface with devices through the particle.io cloud. |
Package respreader provides a convenient way to frame response data from devices that use prompt/response protocols such as Modbus, other RS485 protocols, and modem AT commands.
|
Package respreader provides a convenient way to frame response data from devices that use prompt/response protocols such as Modbus, other RS485 protocols, and modem AT commands. |
Package sensors implements code to read various sensors.
|
Package sensors implements code to read various sensors. |
Package store implements database store code -- currently Genji and Influxdb.
|
Package store implements database store code -- currently Genji and Influxdb. |
Package system implements system specific functionality.
|
Package system implements system specific functionality. |
Package tools is use to lock down versions of various tool packages we use.
|
Package tools is use to lock down versions of various tool packages we use. |