Documentation
¶
Overview ¶
Package server is used to start up the SIOT server, which includes NATS, the store, various built in clients, and HTTP API.
Index ¶
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
Types ¶
type Options ¶
type Options struct {
StoreFile string
DataDir string
HTTPPort string
DebugHTTP bool
DebugLifecycle bool
DisableAuth bool
NatsServer string
NatsDisableServer bool
NatsPort int
NatsHTTPPort int
NatsWSPort int
NatsTLSCert string
NatsTLSKey string
NatsTLSTimeout float64
AuthToken string
ParticleAPIKey string
AppVersion string
OSVersionField string
LogNats bool
}
Options used for starting Simple IoT
type Server ¶
type Server struct {
// contains filtered or unexported fields
}
Server represents a SIOT server process
func (*Server) AddClient ¶ added in v0.5.2
AddClient can be used to add clients to the server. Clients must be added before start is called. The Server makes sure all clients are shut down before shutting down the server. This makes for a cleaner shutdown.
Click to show internal directories.
Click to hide internal directories.