Documentation
¶
Index ¶
- type Battery
- type Grid
- type InputState
- type Inverter
- type Load
- type SynkClient
- func (synkClient *SynkClient) ListInverters(ctx context.Context) ([]string, error)
- func (synkClient *SynkClient) ReadBattery(ctx context.Context) (*Battery, error)
- func (synkClient *SynkClient) ReadGrid(ctx context.Context) (*Grid, error)
- func (synkClient *SynkClient) ReadInputState(ctx context.Context) (*InputState, error)
- func (synkClient *SynkClient) ReadInverterSettings(ctx context.Context) (*Inverter, error)
- func (synkClient *SynkClient) ReadLoad(ctx context.Context) (*Load, error)
- func (synkClient *SynkClient) UpdateInverterSettings(ctx context.Context, settings *Inverter) error
- type SynkObject
- type SynkResponse
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
This section is empty.
Types ¶
type Battery ¶ added in v0.6.0
type Battery struct{ *SynkObject }
type Grid ¶ added in v0.6.0
type Grid struct{ *SynkObject }
type InputState ¶ added in v0.6.0
type InputState struct{ *SynkObject }
type Inverter ¶ added in v0.6.0
type Inverter struct{ *SynkObject }
func (*Inverter) GetBatteryCapacity ¶ added in v0.7.0
func (*Inverter) GetLimitToLoad ¶ added in v0.7.0
func (*Inverter) SetBatteryCapacity ¶ added in v0.6.0
func (*Inverter) SetLimitToLoad ¶ added in v0.6.0
type Load ¶ added in v0.6.0
type Load struct{ *SynkObject }
type SynkClient ¶
type SynkClient struct {
SerialNumber string
// contains filtered or unexported fields
}
func Authenticate ¶
func Authenticate(ctx context.Context, config *configuration.Configuration) (*SynkClient, error)
func (*SynkClient) ListInverters ¶
func (synkClient *SynkClient) ListInverters(ctx context.Context) ([]string, error)
func (*SynkClient) ReadBattery ¶
func (synkClient *SynkClient) ReadBattery(ctx context.Context) (*Battery, error)
func (*SynkClient) ReadGrid ¶
func (synkClient *SynkClient) ReadGrid(ctx context.Context) (*Grid, error)
func (*SynkClient) ReadInputState ¶
func (synkClient *SynkClient) ReadInputState(ctx context.Context) (*InputState, error)
func (*SynkClient) ReadInverterSettings ¶
func (synkClient *SynkClient) ReadInverterSettings(ctx context.Context) (*Inverter, error)
func (*SynkClient) ReadLoad ¶
func (synkClient *SynkClient) ReadLoad(ctx context.Context) (*Load, error)
func (*SynkClient) UpdateInverterSettings ¶
func (synkClient *SynkClient) UpdateInverterSettings(ctx context.Context, settings *Inverter) error
type SynkObject ¶
func (SynkObject) String ¶ added in v0.4.0
func (s SynkObject) String() string
Click to show internal directories.
Click to hide internal directories.