Documentation ¶
Index ¶
Constants ¶
View Source
const DevVersion = "0.0.0"
View Source
const SocketPath = "/tmp/evcc"
SocketPath is the unix domain socket path
Variables ¶
View Source
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
type Influx ¶
Influx is a influx publisher
func NewInfluxClient ¶
NewInfluxClient creates new publisher for influx
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) 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_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
Click to show internal directories.
Click to hide internal directories.