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) RegisterAuthHandlers ¶
RegisterAuthHandlers provides authentication handlers
func (*HTTPd) RegisterSiteHandlers ¶
RegisterSiteHandlers connects the http handlers to the site
func (*HTTPd) RegisterSystemHandler ¶
RegisterSystemHandler provides system level handlers
type Influx ¶
Influx is a influx publisher
func NewInfluxClient ¶
NewInfluxClient creates new publisher for influx
type InfluxConfig ¶
type InfluxConfig struct { URL string Database string Token string Org string User string Password string Interval time.Duration }
InfluxConfig is the influx db configuration
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_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