v0

package
v0.0.7 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 23, 2024 License: Apache-2.0 Imports: 6 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type DataClass

type DataClass struct {
	PowerUnitIdentifier string `xml:"powerUnitIdentifier"`
	DataClassName       string `xml:"dataClassName"`
	DataClassIdentifier string `xml:"dataClassIdentifier"`
}

type DataField

type DataField struct {
	PowerUnitIdentifier string `xml:"powerUnitIdentifier"`
	DataFieldName       string `xml:"dataFieldName"`
	DataClassIdentifier string `xml:"dataClassIdentifier"`
	DataFieldIdentifier int    `xml:"dataFieldIdentifier"`
}

type DataRecord

type DataRecord struct {
	RecordPowerUnitIdentifier string        `xml:"recordPowerUnitIdentifier"`
	RecordTime                time.Time     `xml:"recordTime"`
	RecordOriginalByScada     bool          `xml:"recordOriginalByScada"`
	RecordFields              []RecordField `xml:"recordFields"`
}

type GetAllEndPointsResponse

type GetAllEndPointsResponse struct {
	XMLName   xml.Name `xml:"getAllEndPointsResponse"`
	EndPoints []string `xml:"return"`
}

type GetAllPowerUnitsResponse

type GetAllPowerUnitsResponse struct {
	XMLName xml.Name    `xml:"getAllPowerUnitsResponse"`
	Units   []PowerUnit `xml:"return"`
}

type GetDataClassesForPowerUnitsResponse

type GetDataClassesForPowerUnitsResponse struct {
	XMLName     xml.Name    `xml:"getDataClassesForPowerUnitsResponse"`
	DataClasses []DataClass `xml:"DataClasses"`
}

type GetDataFieldsForPowerUnitsResponse

type GetDataFieldsForPowerUnitsResponse struct {
	XMLName    xml.Name    `xml:"getDataFieldsForPowerUnitsResponse"`
	DataFields []DataField `xml:"DataFields"`
}

type GetRawDataForPowerUnitsResponse

type GetRawDataForPowerUnitsResponse struct {
	XMLName xml.Name `xml:"getRawDataForPowerUnitsResponse"`
	RawData RawData  `xml:"RawData"`
}

type Helper added in v0.0.4

type Helper struct {
	Client *RotorSoftClient
}

func (*Helper) GetRawDataForPowerUnitsExtended added in v0.0.4

func (r *Helper) GetRawDataForPowerUnitsExtended(powerUnitIdentifier []string, from time.Time, to time.Time, dataClassIdent string, dataFieldIdents []string) (GetRawDataForPowerUnitsResponse, error)

type PingResponse

type PingResponse struct {
	XMLName xml.Name `xml:"pingResponse"`
}

type PowerUnit

type PowerUnit struct {
	PowerUnitName       string `xml:"powerUnitName"`
	PowerUnitIdentifier string `xml:"powerUnitIdentifier"`
}

type RawData

type RawData struct {
	From                time.Time    `xml:"from"`
	To                  time.Time    `xml:"to"`
	DataClassIdentifier string       `xml:"dataClassIdentifier"`
	DataRecords         []DataRecord `xml:"dataRecords"`
}

type RecordField

type RecordField struct {
	DataFieldIdentifier string `xml:"dataFieldIdentifier"`
	DataFieldValue      string `xml:"dataFieldValue"`
}

type RotorSoftClient

type RotorSoftClient struct {
	HTTPClient *http.Client
	URL        string
	Username   string
	Password   string
	Helper     *Helper
}

func (*RotorSoftClient) GetAllEndPoints

func (r *RotorSoftClient) GetAllEndPoints() (*GetAllEndPointsResponse, error)

func (*RotorSoftClient) GetAllPowerUnits

func (r *RotorSoftClient) GetAllPowerUnits() (*GetAllPowerUnitsResponse, error)

func (*RotorSoftClient) GetDataClassesForPowerUnits

func (r *RotorSoftClient) GetDataClassesForPowerUnits(powerUnitIdentifier []string) (*GetDataClassesForPowerUnitsResponse, error)

func (*RotorSoftClient) GetDataFieldsForPowerUnits

func (r *RotorSoftClient) GetDataFieldsForPowerUnits(powerUnitIdentifier []string, dataClassIdentifier []string) (*GetDataFieldsForPowerUnitsResponse, error)

func (*RotorSoftClient) GetRawDataForPowerUnits

func (r *RotorSoftClient) GetRawDataForPowerUnits(powerUnitIdentifier []string, from time.Time, to time.Time, dataClassIdent string, dataFieldIdents []string) (GetRawDataForPowerUnitsResponse, error)

func (*RotorSoftClient) GetRawDataForPowerUnitsExtended added in v0.0.4

func (r *RotorSoftClient) GetRawDataForPowerUnitsExtended(powerUnitIdentifier []string, from time.Time, to time.Time, dataClassIdent string, dataFieldIdents []string) (GetRawDataForPowerUnitsResponse, error)

func (*RotorSoftClient) Ping

func (r *RotorSoftClient) Ping() (*PingResponse, error)

type SensorValueTable

type SensorValueTable struct {
	DataFieldIdentifier string
	Records             map[time.Time]map[string]string // Row (timestamp) -> Column (power unit) -> Value (data field value)
}

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL