Documentation ¶
Index ¶
- Constants
- func ExternalControlStrings() []string
- type ChargeTrackerCurrentCharge
- type EmConfig
- type EmLowLevelState
- type EmState
- type EvseExternalCurrent
- type EvseState
- type ExternalControl
- type LastNfcTag
- type LowLevelState
- type MeterAllValues
- type MeterState
- type MeterValues
- type User
- type UsersConfig
Constants ¶
View Source
const ( RootTopic = "warp" Timeout = 30 * time.Second )
View Source
const ( FeatureMeter = "meter" FeatureMeterAllValues = "meter_all_values" FeatureMeterPhases = "meter_phases" FeatureNfc = "nfc" )
Variables ¶
This section is empty.
Functions ¶
func ExternalControlStrings ¶
func ExternalControlStrings() []string
ExternalControlStrings returns a slice of all String values of the enum
Types ¶
type EmLowLevelState ¶
type EmLowLevelState struct {
Is3phase bool `json:"is_3phase"`
}
type EvseExternalCurrent ¶
type EvseExternalCurrent struct {
Current int `json:"current"`
}
type EvseState ¶
type EvseState struct { Iec61851State int `json:"iec61851_state"` ChargerState int `json:"charger_state"` ContactorState int `json:"contactor_state"` ContactorError int `json:"contactor_error"` AllowedChargingCurrent int64 `json:"allowed_charging_current"` ErrorState int `json:"error_state"` LockState int `json:"lock_state"` }
type ExternalControl ¶
type ExternalControl int
const ( ExternalControlAvailable ExternalControl = iota ExternalControlDeactivated ExternalControlRuntimeConditionsNotMet ExternalControlCurrentlySwitching )
func ExternalControlString ¶
func ExternalControlString(s string) (ExternalControl, error)
ExternalControlString retrieves an enum value from the enum constants string name. Throws an error if the param is not part of the enum.
func ExternalControlValues ¶
func ExternalControlValues() []ExternalControl
ExternalControlValues returns all values of the enum
func (ExternalControl) IsAExternalControl ¶
func (i ExternalControl) IsAExternalControl() bool
IsAExternalControl returns "true" if the value is listed in the enum definition. "false" otherwise
func (ExternalControl) String ¶
func (i ExternalControl) String() string
type LastNfcTag ¶
type LowLevelState ¶
type MeterAllValues ¶
type MeterState ¶
type MeterState struct {
State int `json:"state"` // Warp 1 only
}
type MeterValues ¶
type UsersConfig ¶
type UsersConfig struct {
Users []User `json:"users"`
}
Click to show internal directories.
Click to hide internal directories.