Documentation
¶
Index ¶
Constants ¶
const DevVersion = "0.0.0"
const SocketPath = "/tmp/evcc"
SocketPath is the unix domain socket path
Variables ¶
var ( // Version of executable Version = DevVersion // Commit of executable Commit = "" )
Functions ¶
func FormattedVersion ¶
func FormattedVersion() string
func HealthListener ¶
HealthListener attaches listener to unix domain socket and runs listener
Types ¶
type HTTPd ¶
HTTPd wraps an http.Server and adds the root router
func (*HTTPd) RegisterSiteHandlers ¶
RegisterSiteHandlers connects the http handlers to the site
func (*HTTPd) RegisterSystemHandler ¶
func (s *HTTPd) RegisterSystemHandler(valueChan chan<- util.Param, cache *util.ParamCache, auth auth.Auth, shutdown func())
RegisterSystemHandler provides system level handlers
type Influx ¶
Influx is a influx publisher
func NewInfluxClient ¶
NewInfluxClient creates new publisher for influx
type MQTTMarshaler ¶
MQTTMarshaler is the interface implemented by types that can marshal themselves into valid an MQTT string representation.
type SocketHub ¶
type SocketHub struct {
// contains filtered or unexported fields
}
SocketHub maintains the set of active clients and broadcasts messages to the clients.
func NewSocketHub ¶
func NewSocketHub() *SocketHub
NewSocketHub creates a web socket hub that distributes meter status and query results for the ui or other clients
func (*SocketHub) Run ¶
func (h *SocketHub) Run(in <-chan util.Param, cache *util.ParamCache)
Run starts data and status distribution
func (*SocketHub) ServeWebsocket ¶
func (h *SocketHub) ServeWebsocket(w http.ResponseWriter, r *http.Request)
ServeWebsocket handles websocket requests from the peer.
Source Files
¶
- helper.go
- http.go
- http_auth.go
- http_config_device_handler.go
- http_config_helper.go
- http_config_loadpoint_handler.go
- http_config_metadata_handler.go
- http_config_site_handler.go
- http_config_site_other_handler.go
- http_global_settings_handler.go
- http_loadpoint_handler.go
- http_session_handler.go
- http_site_handler.go
- http_vehicle_handler.go
- influxdb.go
- log.go
- mqtt.go
- mqtt_setter.go
- product.go
- socket.go
- socket_helper.go
- uds.go
- version.go