Documentation
¶
Index ¶
- Constants
- type Criteria
- type HttpHandler
- type HttpResult
- type KEBAHandler
- type KebaResult
- type ModbusHandler
- type ModbusResult
- type MqttHandler
- type PingHandler
- type Result
- type SMAHandler
- type SmaResult
- type Summary
- type Task
- type TaskHandler
- func HttpHandlerFactory(conf map[string]interface{}) (TaskHandler, error)
- func KEBAHandlerFactory(conf map[string]interface{}) (TaskHandler, error)
- func ModbusHandlerFactory(conf map[string]interface{}) (TaskHandler, error)
- func MqttHandlerFactory(conf map[string]interface{}) (TaskHandler, error)
- func PingHandlerFactory(conf map[string]interface{}) (TaskHandler, error)
- func SMAHandlerFactory(conf map[string]interface{}) (TaskHandler, error)
- func TcpHandlerFactory(conf map[string]interface{}) (TaskHandler, error)
- type TaskHandlerRegistry
- type TaskList
- type TcpHandler
- type TypeSummary
Constants ¶
View Source
const ( TaskPing = "ping" TaskTCP80 = "tcp_80" TaskTCP502 = "tcp_502" TaskSunspec = "sunspec" )
public task ids
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type HttpHandler ¶
type HttpResult ¶
type HttpResult struct {
Jq interface{}
}
type KEBAHandler ¶
type KebaResult ¶
type KebaResult struct {
Addr, Serial string
}
type ModbusHandler ¶
type ModbusResult ¶
func (*ModbusResult) Configuration ¶
func (r *ModbusResult) Configuration(handler TaskHandler, res Result) map[string]interface{}
type MqttHandler ¶
type PingHandler ¶
type SMAHandler ¶
type Summary ¶
type Summary struct {
Charger, Grid, PV, Charge, Battery, Meter TypeSummary
}
func Consolidate ¶
type TaskHandler ¶
func HttpHandlerFactory ¶
func HttpHandlerFactory(conf map[string]interface{}) (TaskHandler, error)
func KEBAHandlerFactory ¶
func KEBAHandlerFactory(conf map[string]interface{}) (TaskHandler, error)
func ModbusHandlerFactory ¶
func ModbusHandlerFactory(conf map[string]interface{}) (TaskHandler, error)
func MqttHandlerFactory ¶
func MqttHandlerFactory(conf map[string]interface{}) (TaskHandler, error)
func PingHandlerFactory ¶
func PingHandlerFactory(conf map[string]interface{}) (TaskHandler, error)
func SMAHandlerFactory ¶
func SMAHandlerFactory(conf map[string]interface{}) (TaskHandler, error)
func TcpHandlerFactory ¶
func TcpHandlerFactory(conf map[string]interface{}) (TaskHandler, error)
type TaskHandlerRegistry ¶
type TaskHandlerRegistry map[string]func(map[string]interface{}) (TaskHandler, error)
func (TaskHandlerRegistry) Add ¶
func (r TaskHandlerRegistry) Add(name string, factory func(map[string]interface{}) (TaskHandler, error))
func (TaskHandlerRegistry) Get ¶
func (r TaskHandlerRegistry) Get(name string) (func(map[string]interface{}) (TaskHandler, error), error)
type TcpHandler ¶
type TypeSummary ¶
Click to show internal directories.
Click to hide internal directories.