* Support multiple loadpoints * Finalize loadpoint site split * Simplify global voltage * Fix push template error stopping main process * Show only last error on retry * Improve influx v1 compatibility * Update push templates * Revert influx v1 user change
19 lines
372 B
Go
19 lines
372 B
Go
package util
|
|
|
|
import "strconv"
|
|
|
|
// Param is the broadcast channel data type
|
|
type Param struct {
|
|
LoadPoint *int
|
|
Key string
|
|
Val interface{}
|
|
}
|
|
|
|
// UniqueID returns unique identifier for parameter LoadPoint/Key combination
|
|
func (p Param) UniqueID() string {
|
|
key := p.Key
|
|
if p.LoadPoint != nil {
|
|
key = strconv.Itoa(*p.LoadPoint) + "." + key
|
|
}
|
|
return key
|
|
}
|