Documentation
¶
Index ¶
- type DatabaseAdapter
- type MySqlAdapter
- func (m *MySqlAdapter) AddMeasurement(watt uint16) error
- func (m *MySqlAdapter) Close()
- func (m *MySqlAdapter) CreateTableIfNotExits()
- func (m *MySqlAdapter) KwhLatest() float32
- func (m *MySqlAdapter) KwhThisMonth() float32
- func (m *MySqlAdapter) KwhThisYear() float32
- func (m *MySqlAdapter) KwhToday() float32
- func (m *MySqlAdapter) KwhTotal() float32
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type DatabaseAdapter ¶
type MySqlAdapter ¶
type MySqlAdapter struct {
// contains filtered or unexported fields
}
func NewMySqlAdapter ¶
func NewMySqlAdapter(user string, password string, host string) *MySqlAdapter
func (*MySqlAdapter) AddMeasurement ¶
func (m *MySqlAdapter) AddMeasurement(watt uint16) error
func (*MySqlAdapter) Close ¶
func (m *MySqlAdapter) Close()
func (*MySqlAdapter) CreateTableIfNotExits ¶
func (m *MySqlAdapter) CreateTableIfNotExits()
func (*MySqlAdapter) KwhLatest ¶
func (m *MySqlAdapter) KwhLatest() float32
func (*MySqlAdapter) KwhThisMonth ¶
func (m *MySqlAdapter) KwhThisMonth() float32
func (*MySqlAdapter) KwhThisYear ¶
func (m *MySqlAdapter) KwhThisYear() float32
func (*MySqlAdapter) KwhToday ¶
func (m *MySqlAdapter) KwhToday() float32
func (*MySqlAdapter) KwhTotal ¶
func (m *MySqlAdapter) KwhTotal() float32
Click to show internal directories.
Click to hide internal directories.