Documentation
¶
Index ¶
Constants ¶
const SocketPath = "/tmp/evcc"
SocketPath is the unix domain socket path
Variables ¶
This section is empty.
Functions ¶
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
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
- openapi.go
- product.go
- socket.go
- socket_helper.go
- uds.go